Whenever a store (Ext.data.Store
) reads data from the server, it sends paging parameters like &page=1&start=0&limit=25
in a json
proxy or [page:1, start:0, limit:25]
using a direct
proxy.
I'd like to disable paging in the store or proxy configuration.
I found this workaround, but I'm sure there must be a better method.
proxy: {
pageParam: undefined,
startParam: undefined,
limitParam: undefined,
...
}
Does anyone know how to disable paging properly ?
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.
store: {
pageSize: 0,
limit:0,
....
}
excluding from the request
page: __
start: __
limit: ___
I set:
pageSize: 0,
in the model config.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With