Since AbstractSummary is used as Mixin and is Extended i override the Summary feature and next to isSummary i add isSummaryFeatureSummary like this:
Code:
Ext.override(Ext.grid.feature.Summary, {
createSummaryRecord: function(view) {
var columns = view.headerCt.getVisibleGridColumns(),
info = {
records: view.store.getRange()
},
colCount = columns.length, i, column,
summaryRecord = this.summaryRecord || (this.summaryRecord = new view.store.model(null, view.id + '-summary-record'));
// Set the summary field values
summaryRecord.beginEdit();
for (i = 0; i < colCount; i++) {
column = columns[i];
// In summary records, if there's no dataIndex, then the value in regular rows must come from a renderer.
// We set the data value in using the column ID.
if (!column.dataIndex) {
column.dataIndex = column.id;
}
summaryRecord.set(column.dataIndex, this.getSummary(view.store, column.summaryType, column.dataIndex, info));
}
summaryRecord.endEdit(true);
// It's not dirty
summaryRecord.commit(true);
summaryRecord.isSummary = true;
summaryRecord.isSummaryFeatureSummary = true;
return summaryRecord;
}
});
Then in summaryRenderers i check the record as follows:
Code:
summaryRenderer = function(value, data, record) {
if(record.isSummaryFeatureSummary)
return '<b>Grand Total</b>';
// Return group summary
return '<b>'+value+'</b>';
};
Maybe it's helpful, solved my case.
Be sure if you return other columns through your summaryRenderers that you have a summaryType returning a value specified for that column configuration.
If you need more code to get GroupingSummary and Summary features working together let me know.