View Full Version : Summary for multiple page

9 Apr 2014, 7:44 AM

I have a problem with the result of my summary :

I have mutliple page of result and I want the sum of ALL the column but in my case it give the sum for each page...

Since my english is very poor , I suppose that you didn't understand anything at all lol . So I'm going to give you an example:

I have this:


But I want the total of ALL the column in each page like this:

Here's my code :

Ext.applyIf(me, {
forceFit: true,
loadMask: false,
features: [{
ftype: 'summary',
dock: 'bottom'
columns: [
header: ressources.HeaderTypeStockText,
dataIndex: 'libelleTypeStock',
summaryRenderer: function(){
return '<b> Total <b>';
flex: 0.1
header: ressources.HeaderQuantiteText,
dataIndex: 'quantite',
summaryType: 'sum',
flex: 0.1
header: ressources.HeaderPoidsText,
dataIndex: 'poids',
summaryType: 'sum',
flex: 0.1

store: storeGrid,
// paging bottom bar
bbar: Ext.create('Ext.PagingToolbar', {
store: storeGrid,
displayInfo: true,
displayMsg: ressources.GridDisplayMsg,
emptyMsg: ressources.GridEmptyMsg

Can anyone help me please?

[1]: http://i.stack.imgur.com/9aDuf.png
[2]: http://i.stack.imgur.com/ZMhpO.png

9 Apr 2014, 12:12 PM
Since the total can only sum what is available, you would have to send this info from the server as another field.

11 Apr 2014, 4:13 AM
Thank you, that's what I did