火“后遗”在ExtJS网格中编辑整行后? [英] Fire "afteredit" after edit the entire row in ExtJS grid?

查看:195
本文介绍了火“后遗”在ExtJS网格中编辑整行后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ExtJS编辑器网格,里面有一些列。我想修改记录上的数据,并自动将数据保存到数据库。但是,当我完成编辑当前行中的所有单元格后,我只需要保存数据。我使用了这个事件afteredit,但是在更改了一个单元格之后就开始了这个事件。
如何在完成修改所有单元格之前保持该事件不会触发?或者你可以建议另一种方式来做到这一点,而不是使用afteredit事件?
非常感谢你。

解决方案

你可以看看 Ext.ux。 grid.RowEditor 。它有一个 afteredit 事件,当行完成编辑时触发。



您可以找到工作示例 http://dev.sencha.com/deploy/dev/examples /grid/row-editor.html


I have an ExtJS editor grid which has some columns inside. I want to modify data on a record and auto save data to DB. But I just need save data after I complete editing all cells at the current row. I've used the event "afteredit" but it fired the event right after one cell was changed. How can I keep that event not to fire until I've completed modifying all cells? Or could you please suggest another way to do this, not use the "afteredit" event? Thank you so much.

解决方案

You might take a look at Ext.ux.grid.RowEditor. It has an afteredit event that fires when the row is done being edited.

You can find the working example at http://dev.sencha.com/deploy/dev/examples/grid/row-editor.html

这篇关于火“后遗”在ExtJS网格中编辑整行后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆