I have this code that is allowing me to filter my store on a single column:
var events_ds = new Ext.data.JsonStore({
autoLoad: true,
autoDestroy: true,
url: '<% $base %>json/events/<% $eventWWN %>.json',
storeId: 'events_ds',
idProperty: 'id',
fields: [ 'id', 'precedence', 'affectedWWN', 'eventType', 'color', 'CollectTime' ],
listeners:
{ 'load': function(store) {
store.filter( 'color', $_GET['color'] )
}
}
});
Now, I am wanting to filter on multiple columns.
I was thinking to change the 'listeners' line to this but it is working and I dont see another example where I can use multiple filters - got any suggestions?
listeners:
{ 'load': function(store) {
store.filter( 'color', $_GET['color'] ),
store.filter( 'priority', $_GET['priority'] )
}
}
Update: This is ExtJs 3.4