PDA

View Full Version : MultiLevel grouping with GroupSummary



frrogoy
6 Jan 2010, 5:16 AM
I'm trying to get the GroupSummary extension working with the MultiLevel grouping extension. Without any coding changes to either, the only problem I'm having is that it generates an extra summary row at the end of each outer group. The totals on the extra summary are identical to those of the last inner group summary. (I'm only using two grouping fields: region and state - so after the last state in each region, there is an extra summary row.)

Any ideas on how to turn off this extra summary row would be greatly appreciated!

I'm using ExtJS 3.1

snehalv
2 Dec 2011, 1:36 AM
Well Quite late to reply but it might help someone else,;)
In the MultiGroupingView.js
for doRender function replace the for loop:
for (var k = 0; k < toEnd; k++) {
this.doGroupEnd(buf, g, cs, ds, colCount);
}

with,
for (var k = 0; k < toEnd-1; k++) {
this.doGroupEnd(buf, g, cs, ds, colCount);
}

This will remove the extra summary row.