31 Jul 2012 2:50 PM #1
Unanswered: Trip to server for previous page in list paging plugin
I need to keep the display set limited to x-y in the list (i.e 1 to 10, 11 to 20 etc) and need to refresh on previous page when scrolling up.
Can someone please provide any advice on a good way to achieve it?
2 Aug 2012 4:45 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
By default when you go to load the next page, it will add the records to the list, not replace them. If you only want to have the one page at any time you would need to extend the ListPaging plugin and in the loadNextPage function remove the addRecords: true code.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.