提交存储后,extjs 6网格小部件消失

问题描述 投票:1回答:0

我在其中一个列中有一个带有组合框的网格,该网格在首次加载时有效,但是当我编辑单元格的存储值以及执行此操作时

onComboOptionsChange: function (combo, newValue, oldValue, eOpts) {

record.set("Unit", 1);
record.commit();

}

网格不再显示组合框。

{
header: 'Options',
dataIndex: 'StoreName',
flex: 1,
xtype: 'widgetcolumn',
widget:
    {
    xtype: 'combobox',
    displayField: 'Description',
    valueField: 'LineID',
    listeners: {
        change: 'onComboOptionsChange'
    }
   },
listeners:{
  afterrender:'afterWidgetRender'
}, 
onWidgetAttach: function (column, widget, record) {

  var itemStore = Ext.create('Ext.data.Store', {
      fields: [
                  { name: 'LineID', type: 'int' },
                  { name: 'ServiceCode', type: 'string' },
      ],
      data: record.data.Items
  });

  widget.setStore(itemStore); 

},
javascript extjs extjs4 extjs5
© www.soinside.com 2019 - 2024. All rights reserved.