Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jong Bor on Sep 07, 2007 00:18
open dhtmlx forum
Simulate cell edition

I have set up an edit handler on a grid using setOnEditCellHandler. Now I need to simulate an edition on a given row, so that this handler is called. I know I can call

grid.selectCell(rowIndex, 0, false, false, true);

in order to open a cell editor on cell (rowIndex, 0), but this is not what I need (although it is close, because once the user clicks outside the cell, the handler is called).

So, can this be done somehow?

Thanks.
Answer posted by Stanislav on Sep 07, 2007 19:29
If you need to call handler you can do it as

    grid.callEvent("onEditCell",[stage,rid,cind])

such way to call events work for all event types