How to refer dhtmlx comoponent attached inside another Comp

Guys,

My requirement is when user clicks the record in the grid for details,

  1. For each click, new tab opens with 2 grid where one grid shows list of child records and the bottom grid show the child details.

  2. When user click again on the child record, the bottom grid refreshed with child details.

Now my question is now I can create dhtmlx components run time and can refer them ? Take a case I have added one grid inside tab and now I don’t have reference of grid as object. So how I can user my tab object to get reference of grid and work on that ?

Thanks for the help in advance.

Now my question is now I can create dhtmlx components run time and can refer them ?

Please see the demo in the Suite package:

dhtmlxTabbar/samples/05_components/01_grid_inside.html

If you need to grids in one tab, you may layout 2E or 2U first and grids into layout cells.

take a case I have added one grid inside tab and now I don’t have reference of grid as object.

Why not ? attachGrid() method returns grid object:

var grid = tabbar.cells(tabId).attachGrid();