Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Praveen on Dec 10, 2008 05:02
open dhtmlx forum
Drag N drop

Hi,
Anyone can give some idea to acheive the Drag N drop functionality between the cilumns???


Thanks
Praveen Yenda
Answer posted by Support on Dec 10, 2008 07:18
There are two steps, which need to be done
a) you need to disable existing drag-check logic, which prevent d-n-d on the same row. 
       grid._dragIn=function(a){return a;}
b) you need to define custom logic of d-n-d processing
       grid.attachEvent("onDrag",function(sid,tid,sgrid,tgrid,sco,tcol){
                 ... any custom logic here ..
                 scol,tcol - source and target columns
                  return false;
       });
Answer posted by Support on Dec 11, 2008 04:47
Working sample attached
Attachments (1)