PDA

View Full Version : edittable grid changes



P76
13 Nov 2007, 10:58 AM
Hi,

Most likely I have a newbie question, but I can't seem to find the answer through google or the forum search.

I'm working with the code of the following example: http://extjs.com/deploy/dev/examples/grid/edit-grid.html

I want to register when the content of a cell changes, but don't seem to get it to work, I've read about adding an event listener, but can't figure out how to do this. I hope somebody can help me out with something like the following code, but triggered on a change:


grid.on('celldblclick', function(grid, rowIndex, e) {
alert(grid + "\n\n" + rowIndex + "\n\n" + e)
});

Greetz, P

tryanDLS
13 Nov 2007, 11:11 AM
Listen to the afteredit event, not the the celldblclick.