每当我从组合框中选择一个项目时,组合框就会出现在屏幕上。它只在我移动第二列或做任何事情时消失。这很烦人。如何在网格上修复它?这是一个错误吗?这是我的代码:
{
header: "Description",
sortable: false,
width: 250,
renderTo: Ext.getBody(),
editor: new Ext.form.field.ComboBox( {
enableKeyEvents:true,
typeAhead: true,
typeAheadDelay: 100,
queryMode: 'local',
forceSelection: true,
selectOnTab: true,
queryDelay : 100,
store : aob_store_inventory,
valueField: 'InvDescription',
displayField: 'InvDescription',
triggerAction: 'all',
editable : true,
listeners: {
select: function(combo, record, index) {
store_aobdetails.data.items[aob_sel_rec].data.InvID = record[0].data.InvID;
store_aobdetails.commitChanges();
combo.up('grid').getView().refresh();
}
}
}),
dataIndex: 'InvDescription'
}
答案 0 :(得分:0)
通过删除代码修复它:
combo.up('grid').getView().refresh();