To filter one grid column I use:
store.filter({
property: 'first_name',
anyMatch: true,
value : this.getValue()
});
Now I need to search multiple fields at once, something like:
var filters = [
new Ext.util.Filter({
property: "first_name", anyMatch: true, value: this.getValue()
}),
new Ext.util.Filter({
property: "last_name", anyMatch: true, value: this.getValue()
})
];
store.filter(filters);
The weird thing is that in both cases, only single search works
this didn’t help How to filter multiple extjs grid columns?
Based on the way you implement the Filter I guess you are using
remoteSort: falseAs hint: You don’t need to create a instance of the filter, just provide the configuration. If possible sparethis. Most events provide a instance of the component, use it instead ofthis. It can save you headache.I tested it and it works. Here’s a simple example:
Here is a JSFiddle
Version 2 with textfield
And the JSFiddle