PDA

View Full Version : [FIXED] RowEditing 'afteredit' definition generates error [me.events undefined]



hulstein
11 Apr 2011, 12:32 AM
Hi,

When I change the row-editing example to include a listener for the afteredit event, I get an error. Changed code to:



var rowEditing = new Ext.grid.RowEditing( {
listeners: {
afteredit: function( ) {
console.log( "Line Edit" );
}
}
} );


I get an error:

TypeError: Result of expression 'me.events' [undefined] is not an object.

When I use another event (edit/beforeedit', I get the same error. Can it be that the event handling is broken for RowEditing?

Thanks

aconran
11 Apr 2011, 6:07 PM
Thanks for the report, this will be fixed in the next release.

christocracy
12 Apr 2011, 11:43 AM
it's because the docs are incorrect. RowEditing is using the event-name "edit".

kiezie
1 Nov 2011, 12:13 AM
How to put it's listeners in controllers (MVC).

Please Help me...