Get grid by container

Hi

If grid is attached to layout cell I can get a grid using layout.getCell(‘cell1’).getWidget()

How can I get a grid if grid is attached to div?

<div id="container"></div>
new dhx.Grid('container', data)

I need to get grid by div id

Unfortunately it is not available to get the grid object by its id.
Please, try to assign a variable to your grid during the initialization.

1 Like