{fieldLabel:"是否可用",labelWidth:60,xtype:'radiogroup',itemId:'isUsed',width:180,items:[
{ boxLabel: '否', name: 'isUsed', inputValue:false},
{ boxLabel: '是', name: 'isUsed', inputValue:true,checked:true}
]}
tar.down('#isUsed').setValue({'isUsed':data.isUsed});
不能直接 tar.down('#isUsed').setValue({data.isUsed});
要以json map的形式 指明 name,因为一个radioGroup内可以有多个radio分组。
本文介绍了如何正确使用 ExtJS 中的 RadioGroup 组件来设置选项,并提供了 setValue 方法的使用示例,强调了以 JSON 对象形式指定 name 的重要性。
1760

被折叠的 条评论
为什么被折叠?



