Grid Editing when adding or inserting row using datastore

Hi,

I’m running version 5.x and I’m having trouble with the grid.editCell() function. When I add or Insert a row I want the system to automatically put the user in Edit mode on the first column on that row. I’ve got the grid synced up with a datastore, so once I do the Add or Insert into the datastore I do a grid.selectCell() and then grid.editCell(). but for some reason, it goes through all 3 stages of onEditCell() without me doing anything and does not put me into edit mode.

The adding or inserting of rows works fine if I don’t use datastore but when adding the data store it fails.

Regards, Sam

Try to call the editCell() method with a little timeout:

grid.selectCell()
setTimeout("grid.editCell()",50)