1 {layout:'column',anchor:'97%',items:[ 2 {columnWidth:.5,layout:'form',border:false,items:[{ 3 xtype: 'radiogroup', 4 itemId: 'isRemindGroup', 5 fieldLabel: '是否羣發', 6 items: [{ 7 xtype: 'radio', 8 boxLabel: '否', 9 inputValue:false, 10 itemId:'publishAll', 11 name: "bean.publishAll", 12 checked: true, 13 listeners: { 14 'check':this.setEnterEnable.createDelegate(this) 15 } 16 },{ 17 xtype: 'radio', 18 boxLabel: '是', 19 inputValue: true, 20 itemId:'publishAll', 21 name: "bean.publishAll", 22 listeners: { 23 'check':this.setEnterDisable.createDelegate(this) 24 } 25 }] 26 }]} 27 ]}
調用this
1 /** 2 * 羣發企業,禁用發送企業和選擇企業 3 * @param {} component 4 * @param {} checked 5 */ 6 setEnterDisable:function(component,checked){ 7 var form = this.formPanel.getForm(); 8 if(component.getValue()){ 9 form.findField('destinationNames').disable(); 10 form.findField('chooseEnter').disable(); 11 } 12 }, 13 /** 14 * 非羣發,啓用發送企業和選擇企業 15 * @param {} component 16 * @param {} checked 17 */ 18 setEnterEnable:function(component,checked){ 19 var form = this.formPanel.getForm(); 20 if(component.getValue()){ 21 form.findField('destinationNames').enable(); 22 form.findField('chooseEnter').enable(); 23 } 24 }