Retrieving a grid using its container name

Hi, I’m dynamically creating grids in a page, eg:

            for (const [itemKey, itemValue] of Object.entries(itemByKey)) {

                var conceptGrid = new dhtmlXGridObject("gridbox" + itemKey);
                (define grid below)
           }

Is there a way for me to retrieve the grid and make changes to it using the container name I pass to the dhtmlXGridObject constructor?

I suppose I could recreate the grid as necessary, but that’s a lot more work.

Thanks for your help.

Cassidy

Please, try to use:
mygrid = document.querySelector("#gridbox-id").grid

1 Like

Thank you @sematik ! Do you know how to retrieve dhtmlXForm objects by any chance?

There is no such API allowing to get the dhtmlxForm object from its container.