Skip to content

Commit

Permalink
Fix when showSummaryOnHide is on and we try to collapse the group
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytomov committed Jul 5, 2012
1 parent a1a7941 commit ed1ce0a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/grid.grouping.js
Expand Up @@ -165,7 +165,12 @@ $.jgrid.extend({
if(grp.showSummaryOnHide) {
if(r){
while(r) {
if($(r).hasClass('jqfoot') ) { break; }
if($(r).hasClass('jqfoot') ) {
var lv = parseInt($(r).attr("jqfootlevel"),10);
if( lv <= num) {
break;
}
}
$(r).hide();
r = r.nextSibling;
}
Expand Down Expand Up @@ -265,7 +270,7 @@ $.jgrid.extend({
if(grp.groupCollapse && !grp.showSummaryOnHide) {
hhdr = " style=\"display:none;\"";
}
str += "<tr"+hhdr+" role=\"row\" class=\"ui-widget-content jqfoot ui-row-"+$t.p.direction+"\">";
str += "<tr"+hhdr+" jqfootlevel=\""+(n.idx-ik)+"\" role=\"row\" class=\"ui-widget-content jqfoot ui-row-"+$t.p.direction+"\">";
var fdata = findGroupIdx(i, ik, grp.groups),
cm = $t.p.colModel,
vv, grlen = fdata.cnt;
Expand Down

0 comments on commit ed1ce0a

Please sign in to comment.