0

错误图像

每当我从组合框中选择一个项目时,组合框就会出现在屏幕上。只有当我移动到第二列或做任何事情时它才会消失。这很烦人。如何使它固定在网格上?这是一个错误吗?这是我的代码:

{
                                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'
                            }
4

1 回答 1

0

通过删除代码修复它:

combo.up('grid').getView().refresh();
于 2014-04-15T00:51:30.140 回答