items:[{
xtype: 'checkboxgroup',
items: [
{boxLabel: 'a', name: 'aa' ,inputValue:'100'},
{boxLabel: 'b', name: 'bb',inputValue:'101'},
{boxLabel: 'c', name: 'cc',inputValue:'102'}
]
]
怎么样去给这个checkbox赋为true值,也就是默认打勾,不要跟我说
items: [
{boxLabel: 'a', name: 'aa' ,inputValue:'100' checked : true},
{boxLabel: 'b', name: 'bb',inputValue:'101'},
{boxLabel: 'c', name: 'cc',inputValue:'102'}
] 之类的items是我之前已经构造好的,我不想去改动那里的代码,只想在外部程序去给它里面的checkbox赋值
xtype: 'checkboxgroup',
items: [
{boxLabel: 'a', name: 'aa' ,inputValue:'100'},
{boxLabel: 'b', name: 'bb',inputValue:'101'},
{boxLabel: 'c', name: 'cc',inputValue:'102'}
]
]
怎么样去给这个checkbox赋为true值,也就是默认打勾,不要跟我说
items: [
{boxLabel: 'a', name: 'aa' ,inputValue:'100' checked : true},
{boxLabel: 'b', name: 'bb',inputValue:'101'},
{boxLabel: 'c', name: 'cc',inputValue:'102'}
] 之类的items是我之前已经构造好的,我不想去改动那里的代码,只想在外部程序去给它里面的checkbox赋值
Ext.getCmp(id).setValue(true);
大家帮帮忙
你可以检查下你是怎么刷新的。