new Ext.form.ComboBox({
fieldLabel:'设置条件',
store:new Ext.data.SimpleStore({fields:['supName','supValue']}),
name:"tongjitiaojian",
id:"tongjitiaojian",
width:125,
listWidth :200,
displayField: 'supName',
valueField:'supValue',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
forceSelection:true,
emptyText: '请选择...',
selectOnFocus: true,
//readOnly:true,
iconCls: 'no-icon',
listeners:
{
select:function(combobox,record,index)
{
var cmd=record.get("supValue");
}
}
}),
/*
{fieldLabel:'设置条件',
name:"tongjitiaojian",
id:"tongjitiaojian",
xtype:"combo",
width:125,
listWidth :200,
store:new Ext.data.SimpleStore({fields:['supName','supValue']}),
displayField:'supName',
valueField:'supValue',
typeAhead: true,
mode: 'local',
forceSelection:true,
triggerAction: 'all',
value:'请选择',
selectOnFocus:true,
readOnly:true,
listeners:
{
select:function(combobox,record,index)
{
var cmd=record.get("supValue");
}
}
},*/
将readOnly:true注释掉竟然就OK了,就能正常显示了。