EXT 根据下拉框动态设置值到其他下拉框或者textfield中
来源:互联网 发布:thread0806.php fid 7 编辑:程序博客网 时间:2024/04/28 22:48
EXT 根据下拉框动态设置值到其他下拉框或者textfield中{columnWidth : 0.5,layout : 'form',labelWidth : 90,items : {fieldLabel : '承租时间',width : 140,hiddenName : 'cztime',xtype:'combo',editable : false, mode :'local', triggerAction:'all', allowBlank:false, store : typeStore, displayField: 'cname', valueField : 'cid', listeners:{ "select":function(){ var value = Ext.get("cztime").dom.value; if(value=="永久"){ Ext.getCmp('contracttime').disable(); Ext.getCmp('contracttime').setValue("永久"); }else{ Ext.getCmp('contracttime').enable(); Ext.getCmp('contracttime').setValue(""); } } }}}{columnWidth : 0.5,layout : 'form',labelWidth : 90,items : {fieldLabel : '期限',width : 150,xtype : 'textfield',id:"contracttime",name:"contracttime",allowBlank : false,maxLength : 128}