Results 1 to 3 of 3

Thread: Ext.data.Store #setPage

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Vote Rating
    2
      0  

    Default Ext.data.Store #setPage

    A #setPage method would be useful for stores as an alternative to #loadPage where you may not want to actually send a request.

    This is relevant for re-using components where new data is loaded. Yea, you can do something like:

    store.load({ ... page: 1, start: 0, ... });

    but the store will end up setting the page to wherever it was previously when internal paging mechanisms are used.

    Thanks,
    RS

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    I'm not sure what you mean by a setPage method. You just want to set the page on the store and not load anything?
    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

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Vote Rating
    2
      0  

    Default

    Correct. If I set the page in the params and reload the list with some different data, then when the ListPaging plugins takes back over, the list ends up on the wrong (probably cached page) if it had been paged previously.

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
  •