This question is locked. New answers and comments are not allowed.
I have an ajax loaded grid that is grouped by a value. When the grid loads, all of the groups are expanded by default. I would like to change this so that all the groups are collapsed by default. I found a solution that someone posted...
tied to the OnLoad client-side event, however, this does not seem to work with the latest version of the grid control. Have some of the class names and/or references changed? Is there any possibility you could let me know what the syntax should look like? Thanks so much!
function gridCollapse(e) { var grid = $('#' + e.target.id); $.each(grid.find('td.t-group-cell').parent('tr'), function(index, value) { $(value).attr('style', 'display: none;'); }); $.each(grid.find('.t-icon'), function(index, value) { if ($(value).hasClass('t-collapse' )) { $(value).removeClass('t-collapse').addClass('t-expand'); } });}tied to the OnLoad client-side event, however, this does not seem to work with the latest version of the grid control. Have some of the class names and/or references changed? Is there any possibility you could let me know what the syntax should look like? Thanks so much!