PDA

View Full Version : Paging



waldav00
7 May 2008, 3:41 PM
I have just figured out how to add the paging toolbar to a grid. I have set the pageSize to 5 and then called:

mySOPstore.load({params:{start:0, limit:5}});

My grid is displaying all 30 records even though I see it has pages 1 - 6 which would be correct. If I page back and forth it always shows all records.

What am I doing wrong?

Zakaroonikov
7 May 2008, 10:20 PM
The paging on the JSON store assumes that the data is remotely paged. That is, it will send a request to the server for the first 30 records using a start and a count parameter. When you select prev, next, first or last it changes the url parameters and the server needs to generate the new subset. If you are using the agent from your JSON store email, well that returns all the records. You will have to adjust your agent to handle url parameters.

Ext.nd makes use of the domino url parameters to perform the paging.