【发布时间】:2013-11-18 17:42:46
【问题描述】:
如何从超过 1 页的网格中获取所有数据?
我设置为一页只显示 50 条记录,但我的总数据最多为 52 条记录,它们存储在 2 页中。
我可以知道如何从这 2 个页面获取所有数据吗?
下面是只能获取一页数据的代码...
ExportButtonTestJS = Ext.extend(One.Report, {
reportName: 'ExportButtonTestRpt',
autoExecute: true,
isDetailPage: false,
listeners: {
bbarconfig: function(report, bbarConfig) {
bbarConfig.items.push({
xtype: 'button',
text: 'Export',
disabled: false,
onClick : function () {
console.log(report.grid.getStore().data.items);
}
});
}
}
});
【问题讨论】: