PDA

View Full Version : Summing Data in group header



harjits
4 Dec 2012, 8:28 AM
Hi there,

I have the following in my view


view: new Ext.grid.GroupingView({
groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Records" : "Record"]})'
}),





How can I also calculate the sum of a column and display it in the group header ?

mitchellsimoens
6 Dec 2012, 8:34 AM
You only have certain fields available to you:

group, gvalue, text, groupId, startRow, rs (records), cls and style.