-
12 Nov 2012 2:29 AM #1
Unanswered: Setting the value of Radio button without triggering Change event
Unanswered: Setting the value of Radio button without triggering Change event
HI All,
I have a radio button. When I use following code, system fires change event of the radio button.
Is there is any way to suppress 'change' event when i set the value of the radio button using setValue?Code:Ext.getCmp('no-range-radio').setValue(true);
-
12 Nov 2012 2:38 AM #2Ext JS Premium Member
- Join Date
- Apr 2008
- Location
- Groningen - Netherlands
- Posts
- 1,010
- Vote Rating
- 23
- Answers
- 75
Suspend its events
Code:var rf = Ext.getCmp('no-range-radio'); rf.suspendEvents(); rf.setValue(true); rf.resumeEvents();
-
12 Nov 2012 2:48 AM #3
Hi Tvanzoelen,
Thank you for quick reply. I was hoping if there is a straight forward (in-built) way to suppress the event rather then suspending the events. If not, I will use this
.
-
12 Nov 2012 2:53 AM #4Ext JS Premium Member
- Join Date
- Apr 2008
- Location
- Groningen - Netherlands
- Posts
- 1,010
- Vote Rating
- 23
- Answers
- 75
You could override the setValue function or take a look at the property checkChangeEvents.
You could set there only to listen for input events.
http://docs.sencha.com/ext-js/4-1/#!...orm.field.Base


Reply With Quote