一、radiogroup的name和radio的name一致,inputValue为整形 {xtype: ‘radiogroup‘,fieldLabel: ‘是否有效‘,name: ‘status‘,items: [{ name: ‘status‘, boxLabel: ‘有效‘, inputValue: 1, checked: true },{ name: ‘status‘, boxLabel: ‘无效‘, inputValue: 0 }] }二、radio无name,inputValue为整形{xtype: ‘radiogroup‘,fieldLabel: ‘是否有效‘,name: ‘status‘,items: [{ boxLabel: ‘有效‘, inputValue: 1,...
获取 代码如下: function IsChecked(radioId) { return Ext.getCmp(radioId).checked; } 设置 代码如下: function SetRadio(radioId, isChecked) { Ext.getCmp(radioId).setValue(isChecked);//或者setValue("on")也可以设置为选中 }
获取 代码如下:function IsChecked(radioId) { return Ext.getCmp(radioId).checked; } 设置 代码如下:function SetRadio(radioId, isChecked) { Ext.getCmp(radioId).setValue(isChecked);//或者setValue("on")也可以设置为选中 }