![](/img/trans.png)
[英]Extjs grid with CellEditing - event for changing of grid field DURING editing
[英]ExtJs Grid - Error on setSize if cellediting active
我的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();
}
但這失敗了。
如何解決呢?
我打電話給我的記錄,以解決它.commit()
和我editingPlugin到.completeEdit()
這將停止編輯過程。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.