View Full Version : Grid with Paging and Search: Custom Parameters

28 Sep 2011, 12:11 AM
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!

28 Sep 2011, 12:37 AM
did you try of the store's proxy:

var proxy = store.getProxy();
proxy.extraParams = {prop1: value1, prop2: value2}

this you have todo each time your search conditons change,
they should be always attached.

28 Sep 2011, 12:46 AM
I am sure I tried this or sth similar yesterday and it didn't work...

But it's working now. Thanks a lot!