2

我的网格面板有一个商店并使用了 cellediting 插件。

当我通过 重新加载我的网格时loadData(),我也reconfigure()我的网格列并调用我的模型的setFields().

因此,当发生这种情况时,只需单击该网格中的可编辑网格单元格,然后就会引发错误:

代码:

Uncaught TypeError: Cannot call method 'setSize' of undefined Editor.js:48
Ext.define.calculate Editor.js:48
Ext.define.runLayout Context.js:1154
Ext.define.runCycle Context.js:1123
Ext.define.run Context.js:1054
Ext.define.statics.flushLayouts AbstractComponent.js:84
Ext.define.statics.resumeLayouts AbstractComponent.js:100
Ext.resumeLayouts AbstractComponent.js:3437
Ext.define.reconfigure Table.js:1024
...

我尝试通过完成编辑过程来防止它:

代码:

if ( oView.editingPlugin ) 
     {
        oView.editingPlugin.completeEdit();
     }

但这失败了。

如何解决?

4

1 回答 1

0

我通过调用我的记录.commit()和我的editingPlugin 来解决它.completeEdit()。这将停止编辑过程。

于 2013-06-25T09:35:01.357 回答