Extjs - How to disable pagination in the store

Whenever the repository ( Ext.data.Store ) reads data from the server, it sends search parameters such as &page=1&start=0&limit=25 in the json proxy or [page:1, start:0, limit:25] using the direct proxy.

I would like to disable paging in the store or proxy configuration.

I found this workaround, but I'm sure there should be a better method.

 proxy: { pageParam: undefined, startParam: undefined, limitParam: undefined, ... } 

Does anyone know how to disable paging properly?

+7
pagination extjs
source share
5 answers
 store: { pageSize: 0, limit:0, .... } 

excluding from request

page: __

start: __

limit: ___

+2
source share

Another option is to override the getParams proxy getParams . It handles groups, sorters, filters, pages, startup options and restrictions. It is defined in Ext.data.proxy.Server

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

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

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

+3
source share

I have installed:

 pageSize: 0, 

in the configuration of the model.

+2
source share

To disable pagination, you must set the values ​​to an empty string, not undefined. For example:

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

This works for me in Ext JS 6.2

+1
source share

install the following in the repository:

 { defaultPageSize: null } 
-one
source share

All Articles