Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Chad on Oct 06, 2008 10:36
open dhtmlx forum
select entire contents of cell on enter edit

currnetly when you enter edit mode on a cell it places the cursor to the side of the existing text. how can i make it select all the contents upon entering edit mode?
Answer posted by Support on Oct 07, 2008 02:12
Add next code snippet to grid initialization, it must provide necessary effect for common excell types

mygrid.attachEvent("onEditCell",function(stage){
  if (stage==1 && this.editor && this.editor.obj)
             this.editor.obj.select();
  return true;
})