PDA

View Full Version : How to trigger afteredit grid event in EXT JS 4



somil
6 Sep 2011, 3:29 AM
Hello,

I am trying to trigger an afteredit event on grid in EXT JS4. In EXT JS 3 I was able to trigger this event by:


grid.on('afteredit', functionToBeCalled);'

I need this in order to implement update function on my grid (i.e. after user update some cell in the row ajax request should be triggered in order to update data in database).

If anyone has any other suggestion how this could be done please provide me some details.


Thanks

arthurakay
6 Sep 2011, 10:31 AM
Have you looked at the "edit" event on the cell editor?

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.plugin.CellEditing-event-edit

somil
6 Sep 2011, 10:50 PM
Hi arthurakay,

I managed to do what I needed with the solution that you suggested.

Thank you very much!

bee
14 Sep 2011, 5:50 AM
I am getting error of undefined.. on event..