Ext 中RadioGroup 监听事件 为什么只执行一次

来源:互联网 发布:软件开发合同规定 编辑:程序博客网 时间:2024/05/21 09:48
正确做法:
{xtype:'radiogroup',hideLabel:false,name:'material.isProduceMaterial',fieldLabel:'是否为生产原料',
items : [
   {
boxLabel:'是',
name:'material.isProduceMaterial',inputValue:'Y',checked: true,
listeners:{'check':function(checkbox,checked){
if(checked){
Ext.getCmp("defaultWarningId").setDisabled(false);
var data = gridPanel.getSelectionModel().getSelections()[0].data;
Ext.getCmp("defaultWarningId").setValue(data.defaultWarning);
};
}}
},
{
boxLabel:'否',
name:'material.isProduceMaterial',inputValue:'N',
listeners:{'check':function(checkbox,checked){
if(checked){
Ext.getCmp("defaultWarningId").setDisabled(true);
Ext.getCmp("defaultWarningId").setValue("0");
};
}}
}
]
}}
Ext 中RadioGroup 监听事件 为什么只执行一次 - sunling_sz - sunling_sz的博客
Ext 中RadioGroup 监听事件 为什么只执行一次 - sunling_sz - sunling_sz的博客
 
 

0 0
原创粉丝点击