View Full Version : Opposite of filtering? (take filtered rows and unfilter some)

13 Feb 2013, 5:01 PM
Filtering on a store is a brilliant tool, but applying 2 filters is an 'AND' action (must satisfy all filters to be displayed) which is useful most of the time, until you want to look for one of two things on different fields.

(if they were on the same field it's a trivial exercise, just make the regular expression you send use and 'or'... i.e. 1|2, meaning either 1 or 2)

So is there a way to make certain rows always stick? If certain rows can't be filtered out, or we have a way to unfilter them back into the store then i can effectively show rows on either of one OR another condition.

The only way i can see to do anything remotely like this is to write a function and use it in a filter... But that would mean declaring the function before i knew what the value i'm filtering by is, and the scope of the function wouldn't see that value or be able to passed it, would it?

13 Feb 2013, 5:53 PM
You might check this out--something I experimented with a while back: http://existdissolve.com/2011/11/extjs-4-filtering-on-multiple-fields/

19 Jun 2014, 1:48 AM
Is there an update to this? Seems it does not work with 4.2.1...