PDA

View Full Version : Gird - Pagination - Page Size different from UI and Server side



vipinmohit_sencha
25 Jun 2012, 5:21 AM
Hi,

I have a grid which has server side pagination with page limit of 20.
then I want to set page size at UI (EXTJS) side also as 5 that means 5 records in a page.

It will fetch first 20 records from server first and then Once I am at fourth page (4*5 = 20) in UI
and I click on next button then It should get next 20 records from server.

How can I configure this in EXTJS?

Any help highly appreciated.

Thanks,
Vipin Mohit

scottmartin
25 Jun 2012, 11:18 AM
Please have a look at the following:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.toolbar.Paging

Example using PHP: (#5)
http://www.sencha.com/forum/showthread.php?211142

Regards,
Scott.