Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Diego POOLE on Jun 08, 2008 10:07
open dhtmlx forum
This does not work in firefox

How can I do to make work this in firefox?   

grid.attachEvent("onEditCell",function(stage,id,row){
       if (stage == 1 && this.editor)
          this.editor.obj.value="";
       return true;
    })

Answer posted by Support on Jun 09, 2008 03:09
This will not work in FF for txt editor type ( to resolve bug with missed cursor in FF, the editor has more complex structure )
The multi-browser code may look as

grid.attachEvent("onEditCell",function(stage,id,row){
       if (stage == 1 && this.editor)
            this.editor.cell.getElementsByTagName("INPUT")[0].value="";

       return true;
    })