Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript ExtJS-分页工具栏不会显示所有结果_Javascript_Extjs - Fatal编程技术网

Javascript ExtJS-分页工具栏不会显示所有结果

Javascript ExtJS-分页工具栏不会显示所有结果,javascript,extjs,Javascript,Extjs,我的ExtJS分页工具栏有问题。它不会显示所有结果。我的json中有大约40条记录。我想在我的网格中显示它,并使用分页工具栏 我的代码片段: 商店: Ext.define('AP.store.history.History', { extend: 'Ext.data.Store', model: 'AP.model.history.History', storeId:'historyStore', pageSize: 15, proxy: { type: 'extajax',

我的ExtJS分页工具栏有问题。它不会显示所有结果。我的json中有大约40条记录。我想在我的网格中显示它,并使用分页工具栏

我的代码片段:

商店:

Ext.define('AP.store.history.History', {
 extend: 'Ext.data.Store',
 model: 'AP.model.history.History',
 storeId:'historyStore',
 pageSize: 15,
 proxy: {
    type: 'extajax',
    url: 'configuration/get-history',
    actionMethods: {
        'read' : 'POST'
    },
    reader: {
        type: 'json',
        root: 'changes',
        totalProperty: 'total'
     }
 } 
})

存储加载:

this.store.load ({
            params:{
                start:0, 
                limit : 15, }
});
它正确地显示结果的1个站点。但是显示在

        displayMsg: 'Display {0} - {1} of {2}',
        emptyMsg: "No data to display"
是:

伊斯蒂德

 'Display 1 - 15 of 40'
第二个站点只显示一个结果。我没有第三个网站

有人能帮我吗

编辑: 我还将我的POST参数值放在这里: 在第一个站点:

 limit  15
 page   1
 start  0
在第二个站点:

 limit  15
 page   2
 start  15

您是使用本地分页还是远程分页remote,我的服务器返回网格行所有数据的集合,还是每个请求只返回15部分?15部分。我在上面的POST方法中输入了参数值。可能是total propert返回错误吗
 limit  15
 page   2
 start  15