PDA

View Full Version : [CLOSED] SetValue call without triggering the Change event



registrator
Apr 13, 2015, 3:54 PM
Is there a possibility to call setValue(something) for a component without triggering a Change event?
I have three fields Net, Vat and Tax Rate where all three are included in the calculation when one of them changes. If you set the value of one of them in the function where you do the calculation then you trigger an event on that component and after that you are in an infinite loop.

Thank you

matrixwebtech
Apr 13, 2015, 5:08 PM
Hi registrator
You can try with setRawValue()
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Text-method-setRawValue

registrator
Apr 13, 2015, 5:49 PM
That's it. I knew there must be a method for this.
Much obliged!