extjs - How to disable pagination on a store

喜欢而已 提交于 2019-12-03 07:49:35
Step
store: {
    pageSize: 0,
    limit:0,
....
}

excluding from the request

page: __

start: __

limit: ___

Another option is to override the proxy's getParams method. This handles the groupers, sorters, filters, page, start and limit parameters. It's defined in Ext.data.proxy.Server

If you want to disable all Extjs used parameters, then you can simple replace it with an empty method:

proxy: {
    getParams: Ext.emptyFn,
    ...
}

You can also extend the proxy class and override this method.

I set:

pageSize: 0,

in the model config.

To disable pagination, you have to set the values to empty string, not undefined. Like so:

pageParam: '',
startParam: '',
limitParam: '',

This works for me in Ext JS 6.2

set the following on the store:

{
    defaultPageSize: null
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!