Is there a way to find a dhtmlx object like this?

dhtmlx.getById(“dhx_root_id”);

There is no such API allowing to get the dhtmlx object by its container.

Do I only need to declare a variable like this to use the grid object?
ex)) var grid = new dhx.Grid(objId, config);
grid.foo();

I want to get the grid I created like this anytime, anywhere.
Is there no such method?
ex)) dhx.Grid.find(objId).foo();

Hi, Try creating your own component manager and make them visible in your global context. See this rudimentary example.

I recommend you take a look at Optimus and you will rarely need to do what you want. Optimus is also able to deal with the life cycle of your components and keep your code organized. See this tutorials

:vulcan_salute: