Extjs 如果选择组合框,则更改放射组
你好,我有两个项目(“作者”和“价格”)和一个组合框的radiogroupExtjs 如果选择组合框,则更改放射组,extjs,combobox,radio-group,Extjs,Combobox,Radio Group,你好,我有两个项目(“作者”和“价格”)和一个组合框的radiogroup { xtype: 'radiogroup', defaultType: 'radiofield', layout: 'hbox', items: [ { boxLabel: 'AUT',
{
xtype: 'radiogroup',
defaultType: 'radiofield',
layout: 'hbox',
items: [
{
boxLabel: 'AUT',
name: 'author',
checked: true,
inputValue: '1',
}, {
boxLabel: 'PRI',
name: 'price',
inputValue: '2',
margin: '0 0 0 10'
}
]
},
{
xtype: 'combobox',
width: 350,
store: 'price.Book'
}
如果我是在组合框中选择的,则我需要,然后从radiogroup项目“author”移动到radiogroup项目“price”时选中true
写什么:
select: function(combo) { ???}
谢谢 你需要这样的东西:
select: function(combo) {
combo.up('form').down('radio[name="price"]').setValue(true);
}