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
750
Expand / Collapse Group Rows
posted

I have searched on this and found ExpandAll() and CollapseAll() but these are not working in response to server-side button click.  I want to have buttons - Expand All and Collapse All that will perform this function.  If this can be done in javascript client-side that would be preferred.

This is not working either:

function collapseAll() {

var grid = $find("hgrid");

var groupRow = grid.get_gridView().get_groupRows().get_row(0);

var row;

for (var i = 0; i < groupRow.get_rows().length; i++) {

row = groupRow.get_rows()[i];

row.groupRow.collapseAll();

}

}