Results 1 to 2 of 2

Thread: Trip to server for previous page in list paging plugin

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    61
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •