View Full Version : Go to the required Page EXTJS Paging tool bar
5 Dec 2011, 1:38 AM
Is there any way to get to the required page on load itself?
Eg: I have 10 pages using my paging tool bar, how can i go to the 5th page directly on loading the grid.
Also how to get the records of the 5th page?
// specify params for the first page load if using paging
// other params
5 Dec 2011, 1:56 AM
I gave the start parameter as 5 to load the fifth page,but still its not loading fifth page.Please let me know if there is any other way..
5 Dec 2011, 2:35 AM
However, it should be noted that it is the server's responsibility to return the correct page. The server will be sent 3 request parameters:
page - the page number. Starts at 1.
limit - the page size.
start - the index of the first result on the page. Starts at 0. Note that setting this to 5 does not mean the 5th page as you implied in your question. Setting it to 5 means you want the results to start at the 6th result.
There is redundancy here. It isn't necessary for the server to process all 3 parameters, you should pick whichever combination works for you. If the server returns more results than were requested they will all end up in the store. The store will not do internal paging, it will trust the server to return the correct results.
Powered by vBulletin® Version 4.1.5 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.