PDA

View Full Version : Listener function for store fires twice on update in grid



lvil
26 Feb 2011, 8:36 AM
Hi, I have a editable Ext grid panel. The store it uses has a listener that fires a function when a record is changed:


listeners:{
update: someFunction
},
The function changes some values in the store, so the function is fired again. Is there a way to run the function once? Maybe to use another listener?

Condor
26 Feb 2011, 3:10 PM
You could call suspendEvents/resumeEvents inside someFunction.