Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Subathra Paul on May 20, 2009 04:38
open dhtmlx forum
Drag n drop between dhtmlTree to dhtmlTreeGrid

Hi,

         I want to disable the drop function while dragging from dhtmlTree to dhtmlTreeGrid. Please help me.

Thanks & Regards,
    P.Subathra
Answer posted by Support on May 20, 2009 05:33
You can use onDrag event of treegrid in next way

        grid.attachEvent("onDrag",function(sid,tid,sgrid,tgrid){
                if (sgrid == tree) return false;
                return true;
        })

where "tree" -reference to the tree object