charris
3 Jan 2012, 7:48 AM
Hi. I have a grid panel which uses a RowEditing plugin configured as follows:
var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToMoveEditor: 1
});
rowEditing.on('edit', function(editor, e) {
console.log('Edited record:', e.record); // <-- Error: e.record is always undefined
});
The problem is that editEvent.record is always undefined. Is this a bug?
I created a runnable code sample on JSFiddle (http://jsfiddle.net/clint_harris/Y3PBR/) which anyone can use to reproduce the issue. Note that this works fine when using CellEditing plugin.
Any input would be appreciated. Thanks!
var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToMoveEditor: 1
});
rowEditing.on('edit', function(editor, e) {
console.log('Edited record:', e.record); // <-- Error: e.record is always undefined
});
The problem is that editEvent.record is always undefined. Is this a bug?
I created a runnable code sample on JSFiddle (http://jsfiddle.net/clint_harris/Y3PBR/) which anyone can use to reproduce the issue. Note that this works fine when using CellEditing plugin.
Any input would be appreciated. Thanks!