Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Buck Powell on May 30, 2008 09:38
open dhtmlx forum
Drag and Drop

I have 3 drag and drop grids that work fine. Is it possible to make one of the grids drop only with no drag?
The grid is on that the contents should not be dragged out of.

Thanks
Answer posted by Support on May 30, 2008 10:41
In dhtmlgrid 1.6 you can use onBeforeDrag event

mygrid.attachEvent("onBeforeDrag",function(){
    return false;
});

In dhtmlxgrid 1.5 you can achieve similar effect by using

mygrid._createDragNode=function(){
    return null;
}