【问题标题】:Change radiogroup if select combobox如果选择组合框,则更改无线电组
【发布时间】:2014-06-08 07:03:46
【问题描述】:

您好,我有两个项目(“作者”和“价格”)和一个组合框的无线电组

{
                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) { ???}

谢谢!

【问题讨论】:

    标签: extjs combobox radio-group


    【解决方案1】:

    你需要这样的东西:

    select: function(combo) {
        combo.up('form').down('radio[name="price"]').setValue(true);
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多