jQuery UI Widgets Forums TreeGrid get childrens in treegrid

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 8 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • get childrens in treegrid #55831

    guru
    Participant

    how to get childs of a row using rowid in treegrid

    get childrens in treegrid #55838

    Dimitar
    Participant

    Hello guru,

    To get the children of a row, call the getRow method. It will return an object with information about the row. The object’s records field is an array with the sub-rows. E.g.:

    var row = $("#table").jqxTreeGrid('getRow', "1.2");
    var children = row.records;

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    get childrens in treegrid #55865

    guru
    Participant

    its not working it throws Cannot read property ‘records’ of undefined in the browser please help me

    get childrens in treegrid #55867

    Dimitar
    Participant

    Hi guru,

    Make sure the tree grid has been initialized by the time you call the method and that you are passing a correct row id (“1.2” is just an example row id). The id table should also be changed to your tree grid’s id.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.