-
3 Jul 2011 5:35 AM #1
[3461] ExtJS4 store suspendEvents clearFilter problem
[3461] ExtJS4 store suspendEvents clearFilter problem
Hi all,
I'm having a problem while suspending events on a remote sort/filter store. I'm trying to clear filters and setting a new one, but my server is receiving 2 queries, one without filters and another one with new filter. Mi code:
Code:store.suspendEvents(false); store.clearFilter(true); store.resumeEvents(); store.filter({ property: prop, anyMatch: true, value : value });
This is not suposed to work?
-
8 Jul 2011 2:44 PM #2Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
Agreed - that's not a good behavior. Moved to the bugs forum and pushed into our tracker to get this fixed for 4.1
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
-
9 Jul 2011 3:50 AM #3
The quick fix right now could be something like this:
But property remoteFilter is not documented on Ext.data.StoreCode:store.remoteFilter = false; store.clearFilter(true); store.remoteFilter = true; store.filter({ property: prop, anyMatch: true, value : value });
-
11 Jul 2011 10:17 AM #4Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
-
17 Aug 2011 3:24 AM #5
same problem here, it seems store.suspendEvents() is not working in extjs 4 .
or its calling resume events even after setting it to false .


-
12 Mar 2012 12:44 AM #6
You found a bug! We've classified it as
a bug in our system.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote