extjs grid 编辑事件

listeners: {
'edit': function(editor, e) {
var record = e.record;
alert("id:" + record.get("id"));
}
}

grid.on('edit', function(editor, e) {
// commit the changes right after editing finished
e.record.commit();
};

你可能感兴趣的:(私人笔记)