本帖最后由 twtxrjso 于 2011-03-31 10:20:47 编辑

解决方案 »

  1.   

    现在csdn 怎么都有广告了 回帖的少了
      

  2.   

    是啊 ,广告很重要, 这样csdn才能活下去,我们才有福
      

  3.   

    这是我用的rediobutton的  和你的checkbox应该类似xtype: 'radiogroup',
                              columns: 'auto',
                              fieldLabel: '智能审核开关',
                              id : 'rgid-Verifytype',
                                        // A radio group: A setValue on any of the following 'radio' inputs using the numeric
                                        // 'rating' field checks the radio instance which has the matching inputValue.
                              items: [ 
                                        {name : 'Verifytype',inputValue: '0',boxLabel: '开启当前账号智能审核',checked: true,
                                                listeners:
                                                {
                                                    "check":function(el,checked)
                                                    {
                                                        if(checked)
                                                        {
                                                            //alert('选中了关闭当前账号智能审核')
                                                            Ext.getCmp("iefftime").setDisabled(false);
                                                            Ext.getCmp("rgid-isVerify").setDisabled(false);
                                                            //Ext.getCmp("rgid-mappingway").setDisabled(false);
                                                            Ext.getCmp("itxtmsg").setDisabled(false);
                                                            verifyparamobj.verifyswitch = 0;
                                                            //FieldSetCondition.
                                                        }
                                                    }
                                                }
                                                
                                        },{name : 'Verifytype',inputValue: '1',boxLabel: '关闭当前账号智能审核',
                                        listeners:{
                                        "check":function(el,checked){
                                            if(checked)
                                            {
                                                //alert('选中了关闭当前账号智能审核')
                                                Ext.getCmp("iefftime").setDisabled(true);
                                                Ext.getCmp("rgid-isVerify").setDisabled(true);
                                                //Ext.getCmp("rgid-mappingway").setDisabled(true);
                                                Ext.getCmp("itxtmsg").setDisabled(true);
                                                verifyparamobj.verifyswitch = 1;
                                                //FieldSetCondition.
                                            }
                                        }
                                       }
                                    }]
      

  4.   

    你用Ext.get()得到的为Element,请用frm.findById('id').getValue()获取。frm为你包含你这个组件的Form.这样得到的就是Component。最终得到的值为true或false。