View Full Version : Store filtering using Boolean alternative
29 Aug 2011, 3:47 AM
how can I filter records in store when I want to use few parameters join by Boolean alternative (OR) ?
30 Aug 2011, 6:05 AM
Local or remote filtering?
For local you can do:
return record.get('type') === 4 || record.get('category') === 6;
30 Aug 2011, 6:35 AM
I implemented it by add extraParams to proxy and handle this on server-side.
Is any better solution?
30 Aug 2011, 6:55 AM
extraParams is one way. FiltersFeature does it by changing the parameters in a beforeload listener. From the server's point of view both approaches are the same, just depends what makes sense in your UI.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.