我的gridpanel有一个商店并使用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();
}
但这失败了。
如何解决这个问题?
答案 0 :(得分:0)
我通过将我的记录调用到.commit()
并将我的editingPlugin调用到.completeEdit()
来解决了这个问题。这将停止编辑过程。