-
7 Dec 2008 11:42 PM #1
how to checked and unchecked radio button using checked and unchecked button
how to checked and unchecked radio button using checked and unchecked button
I have radio button. I have one Checked button and another one Unchecked button. When i click unchecked button there should unchecked the selected radio button. when i click checked button there should checked the unchecked radio button.
help me.
-
7 Dec 2008 11:58 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Here is an example:
ps. But normally, you don't uncheck a radio...Code:new Ext.Viewport({ layout: 'fit', items: { xtype: 'form', items: [{ id: 'radio', fieldLabel: 'Radio', xtype: 'radio', name: 'radio' }], tbar: [{ text: 'Check', handler: function(){ Ext.getCmp('radio').setValue(true); } },{ text: 'Uncheck', handler: function(){ Ext.getCmp('radio').setValue(false); } }] } });
-
12 Oct 2012 5:48 AM #3


Reply With Quote