1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    61
    Vote Rating
    0
    extjslikeit is on a distinguished road

      0  

    Default Unanswered: Trip to server for previous page in list paging plugin

    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?

    Thanks,
    xjslikeit

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread