[CLOSED] PagingToolbar: Add option to retain last params

  1. #1

    [CLOSED] PagingToolbar: Add option to retain last params

    I'm trying to use remote paging with the GridPanel and I want to retain the lastOptions.params between pages, only updating start and limit parameters. The current implementation of PagingToolbar.doLoad() method always calls the store.load() method, only passing the start and limit parameters.

    The recommended solution is to move persistent parameters into store.baseParams, but since some of the parameters I'm using are transient filters, I don't want to have to manage which parameters should be removed from baseParams when the filters are updated. (I'm using FormPanel.getForm().getFieldValues() to get the list of parameters to pass to the store).

    Would it be possible to add a config option to the PagingToolbar to retain last parameters, i.e. call store.reload() instead of load()?

    http://www.sencha.com/forum/showthread.php?102789
    http://www.sencha.com/forum/showthread.php?103889
    http://www.sencha.com/forum/showthread.php?98650

    Thanks! :cool:
    Last edited by Daniil; Sep 07, 2010 at 9:36 PM. Reason: [CLOSED]
  2. #2
    Hello!

    We're working on this.
  3. #3
    Hi,

    What about to use the following PagingToolbar listener?
    <BeforeChange Handler="Ext.applyIf(o, this.store.lastOptions);" />
  4. #4
    Hello, Mark.Cooke!

    Could you tell is there the solution for you in the last Vladimir's post or is this still an issue?

    NOTE: Marked as solved. No more information was provided.
    Last edited by Daniil; Sep 06, 2010 at 8:26 PM. Reason: Adding the note

Similar Threads

  1. [CLOSED] Not value retain when page navigate
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 10, 2011, 4:27 AM
  2. Retain TreePanel Scroll
    By hardik in forum 1.x Help
    Replies: 2
    Last Post: May 04, 2011, 4:11 AM
  3. Retain TreePanel scroll
    By hardik in forum 1.x Help
    Replies: 0
    Last Post: Apr 25, 2011, 11:12 AM
  4. Store does not retain value after post back
    By pooja in forum 1.x Help
    Replies: 1
    Last Post: Oct 15, 2010, 6:14 PM
  5. Replies: 4
    Last Post: Sep 01, 2010, 9:25 PM

Tags for this Thread

Posting Permissions