Start edit using button click

i used a button click to try to start editing, but the editor would close straight away. i know it does open is because if i put a alert line right after editCell, i can see it being open but once i click on the alert box to close it, the editor also close. how do i keep it open? i want to start editing by clicking on a button.

To keep editor opened you should cancel bubbling for the “onclick” event on the button.
docs.dhtmlx.com/doku.php?id=dhtm … t_editcell

thanks!