PDA

View Full Version : GridPanel paging without reloading the store



cmhampton
23 Mar 2011, 12:45 PM
Is there a way to add paging to a GridPanel that takes JSON data and creates the pages from it, rather than requiring the server to create the paging?

For example, I have a query that returns 4500 records. Normally, it wouldn't be an issue to set a start and stop in the query, but the way our system is built, everything is completely dynamic. Basically, I say 'Run this stored procedure', and the server side code generates the ExtJS code to create the DataStores, ColumnModels and GridPanels. Dynamically managing paging, as well as ORDER BY clauses is proving troublesome. It would be much simpler if I could load all 4500 records at once, and have the client-side JS handle paging and sorting.

Is this possible? If so, how do I do it?

Thanks