PDA

View Full Version : Editorgrid click 1 cell and edit the next one problem



RC_ants
2 Aug 2010, 6:35 AM
For clearification reasons we have added a column to our grid that show the data type of the cell next to it. (Every one of those columns have their own data type and editor)

What I used to do on cellClick is grid.startEditing(rowIndex, columnIndex+1);

This stopped working in ExtJs 3.2.
When I use cellMouseDown instead I can see the column light up in edit modus. But as soon as I release the mouse button it cancels the edit modus again.

Using another event with fixed variables does work, so their is nothing wrong with the grid.
The problem lies with the cellClick event which cancels any editing after being fired. Any one knows how to turn off this behaviour or bypass it?

I'm considering saving the position I clicked and startEditing on cellMouseOut or mouseOut, but I would rather have it in just this function instead.

Condor
2 Aug 2010, 7:42 AM
Try it with a small delay:

grid.startEditing.defer(10, grid, [rowIndex, columnIndex + 1]);

RC_ants
2 Aug 2010, 10:42 PM
Hello Condor,

Thanks, I have implemented that this morning and it works fine. Need a bit more time to see if it keeps working when the browser slows down a good bit when their is more activity. Again thanks for your help.