商店提交后,extjs 6网格小部件消失

时间:2017-10-05 08:38:39

标签: javascript extjs extjs4 extjs5

我有一个带有组合框的网格,其中一个列可以在第一次加载时工作,但是当我为单元格编辑商店的值时以及当我这样做时

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); 

},

0 个答案:

没有答案