My gridpanel has a store and uses the cellediting plugin.
When I reload my grid via loadData()
, I also reconfigure()
my grid's columns and call my model's setFields()
.
So while this is happening, click a editable grid cell in this gird by simple clicking it, and then an error gets thrown:
Code:
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
...
I tried preventing it by completing the edit process with:
Code:
if ( oView.editingPlugin )
{
oView.editingPlugin.completeEdit();
}
but this fails.
How can this be solved?
I solved it with calling my records to .commit()
and my editingPlugin to .completeEdit()
. This stops the editing process.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.