-
11 Oct 2012 4:30 AM #1
Unanswered: grid hook on reload, resort. How?
Unanswered: grid hook on reload, resort. How?
hi,
I am doing a paging remotely with bbar. And having some input fields to filter result. It is all good until user click on my search button. But the problem comes once user clicking on column headers to sort again, or by clicking reload at the paging toolbar. How can I hook over column head clicks (reorder), or even the reload icon on paging toolbar? I would like always include all my search criteria fields attached to query. I cannot find where to ingest this logic, or what method to overwrite...
thank you
-
11 Oct 2012 8:06 AM #2Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,185
- Vote Rating
- 194
- Answers
- 433
You can use the beforeload event of the store to maintain your search:
Scott.Code:listeners: { beforeload: function(){ var searchValue = toolbar.down('#search-field').value; store.getProxy().extraParams = {}; // clear all previous store.getProxy().extraParams.search = searchValue; // update persistent param } }


Reply With Quote