Ext.form.RadioGroup

 1       var radiogroup = new Ext.form.RadioGroup({
 2             id:'sex',
 3           parentColor : true,
 4           fieldLabel:'性别',
 5            100,
 6           items: [{
 7               name: 'status',
 8               inputValue: '0',
 9               boxLabel: '男',
10               checked: true
11           }, {
12               name: 'status',
13               inputValue: '1',
14               boxLabel: '女'
15           }]
16       });
单选
Ext.getCmp('sex').items.each(function (item) {
     if (item.checked) {
        var sex =item.inputValue;
     }
 });
原文地址:https://www.cnblogs.com/zhutouying/p/3262962.html