开发者

Extjs 4 Row-editting canceledit event not fired

I am using Extjs 4 with Designer 1.2.0. I am using Row Editing Plugin within the grid Panel. I have observed that canceledit Event is not fired on the row开发者_开发知识库-editor. What could be the best possible solution for that ?

Any Suggestion??


in extjs 4 row editing plugin doesn't have an event for canceledit. In extjs 4 stores are closely related to grids so if you cancel edit for the record in cause is caller reject() and the store doesn't change...


This works for me, in your grid panel view:

 this.myRowEditing = Ext.create('Ext.grid.plugin.RowEditing', {clicksToEdit: 2});
 this.myRowEditing.on({
     scope: this,
      canceledit: function(pRoweditor, pChanges) {
         this.fireEvent('canceledit', pRoweditor, pChanges);
         ....
      }
  });

This is the solution I found to catch the 'canceledit' event from a controller.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜