Results 1 to 3 of 3

Thread: Grid with Paging and Search: Custom Parameters

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    9

    Default Answered: Grid with Paging and Search: Custom Parameters

    Hey Guys,

    first of all: thanks for the great support in the Sencha Community.

    I built a grid with a paging plugin.
    Then, i built my own Search with some form elements like a textfield, some checkboxes and dropdown menus to search & filter the data.

    Everything is working fine. BUT

    Paging (and sorting) in my search results doesn't work.

    To make it work, i have to attach the search-parameters to the server request, when the "next" button of the paging plugin is clicked.

    I tried 1000 posibilties yesterday and searched the whole forum and the other sites in the WWW but didn't find a working solution.

    It would be great if somebody can help me with my issue.

    The thing I'm looking for is a possibilty to set some Parameters, which are NOT overwritten when the paging plugin generates the server request for the next page.

    Thanks for your help!

  2. did you try of the store's proxy:

    Code:
    var proxy = store.getProxy();
          proxy.extraParams = {prop1: value1, prop2: value2}
          store.load();
    this you have todo each time your search conditons change,
    they should be always attached.

  3. #2
    Sencha User
    Join Date
    Jan 2010
    Posts
    5
    Answers
    1

    Default

    did you try of the store's proxy:

    Code:
    var proxy = store.getProxy();
          proxy.extraParams = {prop1: value1, prop2: value2}
          store.load();
    this you have todo each time your search conditons change,
    they should be always attached.

  4. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    9

    Default

    I am sure I tried this or sth similar yesterday and it didn't work...

    But it's working now. Thanks a lot!

Posting Permissions

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