1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Posts
    8
    Vote Rating
    0
    ssswdon is on a distinguished road

      0  

    Default 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?

    Thanks.

  2. #2
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    397
    Vote Rating
    17
    Zdeno will become famous soon enough

      0  

    Default


    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.

Thread Participants: 1