Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by C. Bernstein on Oct 12, 2009 08:32
open dhtmlx forum
One Way Drag and Drop

How can I implement one way drag and drop? In other words, I only want to be able to drag from grid A, and drop into grid B (not the other way around)?

Thanks.
Answer posted by Stanislav (support) on Oct 14, 2009 04:17
http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:toc_managed_drag_and_drop


  gridB.attachEvent("onBeforeDrag",function(id){
     return false;  
 }
  gridA.attachEvent("onDragIn",function(id){
     return false;  
 }