PDA

View Full Version : Load needed page in EXT Grid Paging Tool bar



kannanRangasamy
5 Dec 2011, 12:27 AM
Hi,
I am using EXTJs paging tool bar in my grid. I need to load the current page based on the record id.
Eg: if there are 100 records and using paging tool bar it shows only 10 records per page.
But based on the record id i need to auto select 52nd record,so how to go to the 6th page directly.
Any ideas??

tobiu
5 Dec 2011, 12:55 AM
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.toolbar.Paging



store.load({
params: {
// specify params for the first page load if using paging
start: 50, // or whatever you need
limit: 100,
// other params
foo: 'bar'
}
});

kannanRangasamy
5 Dec 2011, 1:06 AM
Thanks for the quick reply, Is there any way to load the 5th or 6th page on load?