如何在ExtJS 6中进行行编辑

时间:2017-02-07 10:42:37

标签: java extjs extjs6

我的项目位于ExtJS 4,现在我已将其升级为ExtJS 6。但我在行编辑方面遇到了问题。有人可以在ExtJS 6中讲述进行行编辑的链接。由于升级到ExtJS 6,行编辑无效。

1 个答案:

答案 0 :(得分:2)

请执行以下步骤: -

步骤1.在网格中添加requires

requires: [ 'Ext.grid.plugin.RowEditing' ],

步骤2.在网格中,您需要使用以下代码:

selModel: 'rowmodel', plugins: [{ pluginId: 'your_rowediting_plugin_id', ptype: 'rowediting', listeners: { cancelEdit: function(rowEditing, context) { // your stuff will go here }, edit: function(editor, e) { // your stuff will go here } } }]

希望它能帮助/指导你。