Skip to content

Instantly share code, notes, and snippets.

@mxgrn
Created September 9, 2010 16:02
Show Gist options
  • Save mxgrn/572062 to your computer and use it in GitHub Desktop.
Save mxgrn/572062 to your computer and use it in GitHub Desktop.
// in grid_panel_pre.js:
// React on before edit event to set the recordId property in the editor
this.on('beforeedit', function(e){
e.grid.getColumnModel().getCellEditor(e.column, e.record).field.recordId = e.record.id;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment