Ext Grid选中行问题

Tzspirit 2010-12-31 05:45:39
我有一个可编辑的Grid
怎么获取编辑的当前 单元格的行信息?
求教
...全文
68 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
licip 2011-01-02
  • 打赏
  • 举报
回复
var record = e.record;// 被编辑的记录
record.get("name")这样可以取里面的编辑后的值了。
zoujp_xyz 2010-12-31
  • 打赏
  • 举报
回复
listeners:{
afteredit:function(e){

}
}
/*说明*/
afteredit : ( Object e )
Fires after a cell is edited. The edit event object has the following properties
grid - This grid
record - The record being edited
field - The field name being edited
value - The value being set
originalValue - The original value for the field, before the edit.
row - The grid row index
column - The grid column index
grid.on('afteredit', afterEdit, this );

function afterEdit(e) {
// execute an XHR to send/commit data to the server, in callback do (if successful):
e.record.commit();
};

52,797

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧