Categories | Question details Back To List | ||
close editor Hi i have some code in the oneditcell event, and i have noticed that if the user clicks the tab button to go the the next cell then it opens the editor for that cell (e.g if the next cell is a combo then it drops that combo down). however i dont want it to go to the next cell and enter the edit mode if i am doing some processing in the oneditcell event so, is there a way i can close the editor? i will do this on the oneditcell event i am doing the processing. or is there a way to set the selected cell? and if i do this will it cause any editor (such as dropped down combo)to close when i select the new cell? thanks Answer posted by Support on Nov 17, 2008 03:49 >>so, is there a way i can close the editor? i will do this on the oneditcell event i am doing the processing. Normally it can be done - by grid.editStop(); but the onEditCell occurs before new cell switched to editable state, so you may need to use window.setTimeout(function(){ grid.editStop(); },1); >>or is there a way to set the selected cell? and if i do this will it cause any editor (such as dropped down combo)to close when i select the new cell? Selection of new cell will close currently active editor , can be done by grid.selectCell(... or selectRow, selectRowById commands |