View Full Version : How to remove listeners from grid store?

19 Dec 2016, 10:49 PM
Ext.data.store.un() and Ext.util.Observable.removeListeners() are not wornikng in Internet Explorer. Is there any other way i can remove listeners.

Gary Schlosberg
20 Dec 2016, 7:33 AM
I would expect un() to work. Which specific version of 4.x.x and which version of IE?

20 Dec 2016, 10:02 PM
Extjs 4.1.3 & IE10

Gary Schlosberg
21 Dec 2016, 10:31 AM
And you are not seeing this problem in other browsers? I believe that official support for IE10 began with 4.2.0. Do you see any error or warning messages in the development console?

21 Dec 2016, 9:10 PM
No, I didn't see any error in console and it is working fine in chrome 32.0 and firefox 38.

Gary Schlosberg
22 Dec 2016, 1:46 PM
Do you have the problem with this test case?

It works for me with IE10.

22 Dec 2016, 9:43 PM
comp.store.on('beforeload', function addParam(store, options) {
if(options && options.params) {
options.params['removeFilter'] = 'true';
options.params['selectionMethod'] = 'OTHER';
store.un('beforeload', addParam);

I am trying to remove the listener inside the method which it is bound. Will that be a problem in this case?