View Full Version : Remote Filtering doesn't work properly?

6 Jul 2012, 12:56 AM
Hi all,

I'm using a textfield to perform a filtering on a gridstore. The called function is:

init: function(application) {
change: this.filterStore

filterStore: function(textfield, newVal, oldVal, eventOptions) {
console.log('Filtering the list remotely via server (filterValue=' + newVal + ').');
var store = Ext.getCmp('itgeraetelisteGridPanel').store;

Don't care about the "all"-property. The PHP-Script filters over all columns. This works fine as I see in Firebug. The result-JSON is everytime the right one. I don't when this happens (it is not all the time) but sometimes the store shows the unfiltered store. I also don't know from where the store has the data, because as I said the JSON has only the correctly filtered data.

Here is an extract from the returned JSON-data:

({"total":"39", "results":[

Here is the filterparameter given:


Is there a known bug, because it seems to be one. I tried to work around this with store.clearFilter(); and store.removeAll(true); as you see above but this also didn't work.

Thanks for your help,

6 Jul 2012, 1:21 PM
If you are using remote filtering, you should only need to send the criteria as params to the server and the server should GET the params and use SQL to retrieve the desired records and you are done.