相关疑难解决方法(0)

获取CheckboxGroup(或RadioGroup)值[EXTJS 3.4]

我有一个checkboxgroup和一个radiogroup.对于他们两个,我想要抓住几个值.对于checkboxGroup

var DescCheck = new Ext.form.CheckboxGroup({
    fieldLabel: 'Description of service : <span style="color: rgb(255, 0, 0); padding-left: 2px;">*</span>',
    width : 540,
    labelSeparator : '',
    items: [
        {boxLabel: 'Direct', name: 'Direct', inputValue: 'Direct'},
        {boxLabel: 'Fixed-day', name: 'day', inputValue: 'Fixed'},
        {boxLabel: 'Weekly', name: 'Weekly', inputValue: 'Weekly'}
    ]
});
Run Code Online (Sandbox Code Playgroud)

我试过DescCheck.getValue()但它还给了我

[对象]

我试过了DescCheck.getValue().inputValue,它什么也没归我.

对于radioGroup

var TypeCheck = new Ext.form.RadioGroup({

    items: [
        {boxLabel: 'New 1', name: '1', inputValue: '1'},
        {boxLabel: 'New 2', name: '2', inputValue: '2'},
        {boxLabel: 'New 3', name: '3', …
Run Code Online (Sandbox Code Playgroud)

checkbox extjs

0
推荐指数
1
解决办法
8788
查看次数

标签 统计

checkbox ×1

extjs ×1