View Full Version : ext.data.store.filter [multiple filter options] its not working

25 Oct 2010, 10:26 AM
i used the configuration object, and the function parameters and they did nothing

grid.store.filter('prop','value') [works]
grid.store.filter([{property:'prop1',value:'some'},{property:'prop2',value:'other'}] [doesnt]

i had to switch to

grid.store.filterBy( function )

as a work around.

25 Oct 2010, 10:44 AM
1. Which Ext version are you using? Multiple filters is only supported on Ext 3.3.
2. This filter performs a condition1 AND condition2 (did you expect OR?).

27 Oct 2010, 7:42 AM
1: im using 3.0.0
2: grid.store.filter('prop','value') makes a single condition, thats why i neded something to make 2+

thanks for your reply, if not a bug, im glad i know why.

im aware the solution is to update my extjs
but that will require to validate the application itself and beyond that the custom extensions.

its there a way to check the release wich supports one particular (member/metod/class/you name it).

1 Jul 2011, 12:00 AM
Condor please let me know how to do OR operation in multiple filter.

19 Aug 2011, 10:59 AM
i wanna know how multiple filter with OR operatior

21 Aug 2011, 8:36 PM
I got that working by using multiple if else conditions. That is once when the condition is true for data one column check you will return true and therby display that record. If condition fails continue with next column check, there by u can get to check all the columns..