+ -
当前位置:首页 → 问答吧 → Ext Grid选中行问题

Ext Grid选中行问题

时间:2010-12-31

来源:互联网

我有一个可编辑的Grid
怎么获取编辑的当前 单元格的行信息?
求教

作者: Tzspirit   发布时间: 2010-12-31

listeners:{
  afteredit:function(e){

  }
}
/*说明*/
HTML code
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();
};

作者: zoujp_xyz   发布时间: 2010-12-31

热门下载

更多