var radiogroup = new Ext.form.RadioGroup({
id:'sex',
parentColor : true,
fieldLabel:'性别',
width: 100,
items: [{
name: 'status',
inputValue: '0',
boxLabel: '男',
checked: true
}, {
name: 'status',
inputValue: '1',
boxLabel: '女'
}]
});
单选
Ext.getCmp('sex').items.each(function (item) {
if (item.checked) {
var sex =item.inputValue;
}
});