Select Text

It is possible in javascript select the text in a cell in the grid.

For example when go into edit mode



Thanks Christian


There is no API call for such task , but next code snippet works for most column types



            if (grid.editor) grid.editor.obj.select();



grid.editor - pointer to currently active editor

There any way to do it in cell type combo (dhtmlxcombo)
 
Thanks Christian


You can try the next code



if (grid.editor && grid.editor.combo) grid.editor.combo.DOMelem_input.select();

 
In the case of dhtmlxcombo xxx I put
 
if (grid.editor && grid.editor.combo) grid.editor.combo.DOMelem_input.select();
 
on the stage 1 of doOnCellEdit but it does not work. Any idea that may be happening

Thanks Christian