js var event = getEvent(event);
{
fieldLabel : "生产厂家",
id : "yieldPackage",
labelWidth : 70,
width : 130,
xtype : "combo",
baseCls : "x-plain",
mode : "local",
displayField : "factory_name",
hideTrigger : true,
triggerAction : "all",
style : "margin-left:15px;",
// emptyText:"请选择厂家",
store : yieldPackageStore,
listeners : {
'focus' : function(_c, _r, _i) {
if (yieldPackageFlag == 0) {
yieldPackageFlag++;
}
},
'keyup' : function(_c) {
var event = getEvent(event);
alert(event.keyCode);
if (event.keyCode == 38
|| event.keyCode == 40) {
return;
}
var factory_name = _c.getValue();
if (factory_name.length >= 2)
yieldPackageStore.load({
params : {
start : 0,
limit : 10,
factory_name : factory_name
}
});
}
}
}]
}