Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kamaraju prathi on Dec 06, 2008 04:18
open dhtmlx forum
CELL TYPE -txt

sir,
I have an issue while using cell type txt . For navigation to next Row and same column . I am unable to Move to same column and next Row . I have click outside .Is there any way to solve this issue . its is high priority .
Answer posted by Support on Dec 08, 2008 02:22
In case of "txt" column type, all key navigation function used for navigation inside text-area instead of in-grid navigation, this is expected behavior. 

Behavior can be changed by adding code similar to next 

 mygrid.attachEvent("onEditCell",function(stage,id,ind){
  if (stage==1 && ind==INDEX) this.editor.obj.onkeydown=function(e){ mygrid.doKey({keyCode:(e||event).keyCode,srcElement:"0"}); };
  return true;
 })

where INDEX - index of column in question 




Answer posted by kamaraju on Dec 08, 2008 03:16
hi ,
       for cell type" txt" . My requirement is when i press enter or tab , it should come out of the text area and  focus should be to next row same column .

i didnt get ur above code .
        
Answer posted by Support on Dec 08, 2008 05:50
The above code allow normal key behaviors for "txt" editor
If you need to reassign keys, in addition to it, next code need to be added

mygrid._key_events.k13_0_0 = mygrid._key_events.k9_0_0 = mygrid._key_events.k40_0_0