Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
How to dataBind to children of children in HierarchicalGrid
posted

The following script retrieves reference to the first child of first row in grid.

var firstChildGrid = $('#grid1').igHierarchicalGrid('allChildrenWidgets')[0];
firstChildGrid.dataBind();

what I need is to go down one more level and then dataBind.

Thanks

-Chuck

Parents
No Data
Reply
  • 16310
    Offline posted

    Hello Chuck,

    You can get the second level children widgets as follows:

    var firstChildGrid = $('#grid1').igHierarchicalGrid('allChildrenWidgets')[0];

    firstChildGrid.dataBind();

    var secondLevelGrid = firstChildGrid.childrenWidgets()[0];

    secondLevelGrid.dataBind();

    I hope this helps. Please let me know if you have further questions on the matter.

Children