PDA

View Full Version : Summary Renderer



AnushaSekhar
5 Jun 2015, 3:15 AM
summary value for hidden columns are going zero.
How to access summary values for hidden columns.

Jad
5 Jun 2015, 5:38 AM
hy



columns: [{
dataIndex: 'student',
text: 'Name',
summaryType: 'count',
summaryRenderer: function(value){ return value; }
},...

AnushaSekhar
8 Jun 2015, 12:31 AM
example:
columns: [
{ id:'Internalmark',
hidden:true,
dataIndex: 'Internalmark',
text: 'mark',
summaryType: 'sum',
summaryRenderer: function(value){ return value; }
},{ id:'mark',
hidden:true,
dataIndex: 'mark',
text: 'mark',
summaryType: 'sum',
summaryRenderer: function(value){
var tot=rec.data.Internalmark + value;
return tot;}
},{
id:'student',
dataIndex: 'student',
text: 'Name',
summaryType: 'count',
summaryRenderer: function(value){ return value; }
},.
format may be wrong but my intention is to add that internalMarks and marks together .for each record wise 'mark' colums values displayed correctly but summary renderer become zero.
when that internal marks column is not hidden i get summary renderer.
i don't want to show hidden column but have to get summary renderer any other options are there.??