ExtJs4 获取grid.panel中的被修改数据,该怎么处理

2025-05-13 12:57:43
推荐回答(1个)
回答1:

Ext.grid.EditorGridPanel afterEdit事件,就是每次编辑完一个列之后就提交到后台进行修改操作

传回的参数有
e.grid - grid本身。This grid 
e.record - 正在编辑的record。The record being edited 
e.field - 正在编辑的字段名。The field name being edited 
e.value - 正在设置的值(value)。The value being set 
e.originalValue - 在编辑之前的原始值。The original value for the field, before the edit. 
e.row - grid行索引。The grid row index 
e.column - grid行索引。The grid column index 
listeners:{
      afterEdit: function(e){
          e.record  正在编辑的record。
      
      }

e.field - 正在编辑的字段名

e.value - 正在设置的值(value)。

e.originalValue - 在编辑之前的原始值。