var a;
var dwField = new Ext.form.ComboBox({
fieldLabel:'管理员',
mode: 'local',
width:70,
id:'user_name',
name:'user_name',
editable:false,
allowBlank:true,
typeAhead:true,
triggerAction: 'all',
selectOnFocus:true,
store:Ext.basicdata.user,
emptyText:'-请选择-',
hiddenName:'u_id', //用户ID
valueField: 'user_id',
displayField: 'user_name',
listeners:{
select : function(combo, record,index)
{
jhField.clearValue(); //可以实现当队下拉值变更时,清空之前井号下拉选项中的值
SegField.clearValue();
storejh.proxy= new Ext.data.HttpProxy({url: './DataPageHand.aspx?method=GetAirLine&user_id='+combo.value}); //根据队下拉选项的改变,动态取出对应的井
a=combo.value
storejh.load(); //加载航段下拉框的store
}
}
});
================================================================
alert(Ext.getCmp('user_name').getValue());
alert(Ext.getCmp('user_name').getRawValue());
本文转自左正博客园博客,原文链接:http://www.cnblogs.com/soundcode/archive/2011/11/17/2252788.html,如需转载请自行联系原作者