ext 2.1 有单选按钮的表单提交

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/spt_dream/article/details/81316683

{
                            fieldLabel: '状态',
                            xtype:"panel",//panel  
                            layout:"table",
                            isFormField:true,
                            defaultType: 'radio',
                            items: [{
                                boxLabel: '启用',
                                name: 'flag',
                                id: 'flag_yes',
                                checked: flag=="启用"?true:false,
                                inputValue: '0'
                            },{  
                                boxLabel: '禁用',
                                name: 'flag',
                                id: 'flag_no',
                                checked: flag=="禁用"?true:false,
                                inputValue: '1'
                            }]
}

表单提交错误:B.validate is not a function,换成以下,错误解决

{

        xtype: 'radiogroup',  
        id   : 'atype',  
        fieldLabel: "选项类型",  
        items : [{  
        boxLabel: '单选',  
        name: 'sur_atype',  
        inputValue:'sing',  
        checked : true  
           },{  
        boxLabel: '多选',  
        name: 'sur_atype',  
        inputValue:'dou'  
           }]  
 }

猜你喜欢

转载自blog.csdn.net/spt_dream/article/details/81316683
ext
2.1