View Full Version : Same Example working different with 4.0.7 and 4.2.1

14 Feb 2014, 2:45 PM
Same Example working different with 4.0.7 and 4.2.1

Hi Experts,

I'm trying to design the grid to show Summary Row for all the grouped data.

The Grid features, grouping and summarygrouping is displaying incorrect in version 4.0.7.But its working fine in version 4.2.1.

Sample Example:

Ext.define('TestResult', {
extend: 'Ext.data.Model',
fields: ['student', 'subject', {
name: 'mark',
type: 'int'

Ext.create('Ext.grid.Panel', {
width: 200,
height: 240,
renderTo: document.body,
features: [{
groupHeaderTpl: 'Subject: {name}',
ftype: 'groupingsummary',
showSummaryRow: false

ftype: 'summary',
showSummaryRow: true
store: {
model: 'TestResult',
groupField: 'subject',
data: [{
student: 'Student 1',
subject: 'Math',
mark: 84
student: 'Student 1',
subject: 'Science',
mark: 72
student: 'Student 2',
subject: 'Math',
mark: 96
student: 'Student 2',
subject: 'Science',
mark: 68
columns: [{
dataIndex: 'student',
text: 'Name',
summaryType: 'count',
summaryRenderer: function(value){
return Ext.String.format('{0} student{1}', value, value !== 1 ? 's' : '');
}, {
dataIndex: 'mark',
text: 'Mark',
summaryType: 'average'

Is there any other way to get this summaryRow in version 4.0.7?

Thanks In Advance,

14 Feb 2014, 2:53 PM
As mentioned in the previous thread in regards to this issue, it is recommended that you upgrade away from 4.0.7

It was simply riddled with bugs.

15 Feb 2014, 6:19 AM
Hi Martin,

As whole Product is implemented on 4.0.7 version i cant move away from this version.
Any how i made changes to work as i expected.

Thank You for Playing active role in helping others.

I will talk with you for my next difficulties.

Thank You ...!!!!