Paging toolbar - I need to change start value based on last results
Paging toolbar - I need to change start value based on last results
Hi.
I am using the v4.x Ext.toolbar.Paging and would like to modify the start value when a user select next >. I understand that if the pagesize is set to 10 for example the value will be calculated. The problem is that this won't work for my situation. When I retrieve the page one of the values is nextRecord which i need to send back with the json request. I have a callback for the store.load but it is only caled on the initial load and doesn't get executed when paging.
Any thoughts on this on how I can inject this value on the pager for next and prev navigation?
Pure way would be create own paging toolbar. As a good start you can check source code of Ext.toolbar.Paging. Another way is override this component. Look arround the private function getPageData. I think that is piece of code you are looking for.