View Full Version : 4.0.7: RowEditing plugin 'edit' event always has undefined record. Bug?

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!

3 Jan 2012, 7:54 AM
The first argument seems to have the record:

rowEditing.on('edit', function(editor) {

Now in 4.1.0 Beta 1 this has been fixed as this works:

rowEditing.on('edit', function(editor, e) {

3 Jan 2012, 8:05 AM
msims to the rescue (again)--thanks!