【发布时间】:2014-04-09 15:51:28
【问题描述】:
我的摘要结果有问题:
我有多页结果,我想要整个列的总和,但在我的情况下,它给出了每页列的总和......
由于我的英语很差,我想你什么都不懂,哈哈。所以我给你举个例子:
我有这个:
第 1 页
总数:2
第 2 页
总数:5
但我希望每个页面中整个列的总数如下:
第 1 页
总数:7 (5+2)
第 2 页
总数:7 (5+2)
这是我的代码:
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
})
});
谁能帮帮我? 谢谢
【问题讨论】: