jQWidgets Forums

jQuery UI Widgets Forums Grid get all expanded group

This topic contains 2 replies, has 2 voices, and was last updated by  jahnvi25 12 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • get all expanded group #19662

    jahnvi25
    Participant

    how can i get list of all expanded groups in grid.. after that is loaded…?

    get all expanded group #19674

    dperry
    Participant

    you’d have to use ‘getrootgroupscount’ to get the count, and then call ‘getgroup’ for each. The returned object has an ‘expanded’ property on it.

    var expandedGroups = {};
    var count = gridElement.jqxGrid('getrootgroupscount');
    for( var i = 0; i < count; i++ ) {
    var group = gridElement.jqxGrid('getgroup', i);
    if( group.expanded ) {
    expandedGroups.push(group);
    }
    }
    get all expanded group #19692

    jahnvi25
    Participant

    Thanks for the reply.. i have one more question on same thing..

    once i get the group.. i can access the subitems..
    but then i want to update the cell value..at particular row index..
    (basically i have added hidden columns which becomes visible.. and when user expand group.. i need to set proper cell values)
    but i cant find proper row index to call ‘setcellvalue’ ? how can i find proper row index from group’s subitems ?

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

You must be logged in to reply to this topic.