26 Jul 2012 1:49 AM #1
Unanswered: Remove a single filter from a store which has multiple filters
I have a store with multiple filters, how can i remove a single one of them instead of using store.clearFilter(), which ofcourse clears all of them?
Can't find anything in the docs or any other examples (was expecting removeFilter() or something)..
Thanks in advance,
28 Jul 2012 5:58 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Remove filters and filter the store again.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
29 Jul 2012 11:14 PM #3
Thanks for your reply, i figured there would be a function for it.. Is there any obvious reason why it isn't implemented?
30 Jul 2012 12:41 AM #4
Ext.data.Store.prototype.filters (or store.filters in your instance) is an array of objects representing the applied filters. Try interrogating it and work from there
30 Jul 2012 3:01 AM #5