Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by aioanei roxana on Jul 30, 2008 05:37
open dhtmlx forum
I have the select the information from the cell.

Hello!
How can I do this:

In a grid cell, on edit cell event, I have the select the information from the cell. I hope you understand my probleme...in htlm is something like this:

onclick='this.focus();this.select()' .
TIA
Answer posted by Support on Jul 30, 2008 10:02
There is no full solution, but next will work in most cases
    grid.attachEvent("onEditCell",function(stage,id,ind){
       if ( stage == 1 && this.editor && this.editor.obj )
             this.editor.obj.focus();
       return true;
    });