【ExtJs radiogroup form.loadRecord方法无法赋值正确解决办法】教程文章相关的互联网学习教程文章

ExtJs radiogroup form.loadRecord方法无法赋值正确解决办法【代码】

一、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,...

ExtJS如何设置与获取radio控件的选取状态_extjs

获取 代码如下: function IsChecked(radioId) { return Ext.getCmp(radioId).checked; } 设置 代码如下: function SetRadio(radioId, isChecked) { Ext.getCmp(radioId).setValue(isChecked);//或者setValue("on")也可以设置为选中 }

ExtJS如何设置与获取radio控件的选取状态

获取 代码如下:function IsChecked(radioId) { return Ext.getCmp(radioId).checked; } 设置 代码如下:function SetRadio(radioId, isChecked) { Ext.getCmp(radioId).setValue(isChecked);//或者setValue("on")也可以设置为选中 }