Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rachel H. on Mar 09, 2009 12:55
open dhtmlx forum
drag and drop btwn grid and tree

Hi,

I'm doing a little inbox type application where I have a tree on the left representing some folders, and a grid on the right with some emails.

I need the following behavior:

No node in the tree should be able to be dragged and/or dropped.

To that end, I have the following code:

myTree.attachEvent("onBeforeDrag", doOnBeforeTreeDrag);

function doOnBeforeTreeDrag(id)
{
return false;
}

This works fine as nothing gets dragged from the tree. However, I have extended drag functionality turned on for the grid and it seems to be on for the tree now as well. The little box with a red x or green checkmark shows up as I drag my mouse . I don't want ANYTHING to happen when you try to drag from the tree. That is why I fire the return false; event. Am I missing something?

Thanks,
Rachel
Answer posted by Alex (support) on Mar 10, 2009 03:48

Hello,

The issue is confirmed. I have attached the fixed version of drag extension. Please, try to use it instead of the original. 

Attachments (1)
Answer posted by Rachel H. on Mar 10, 2009 07:20
This fix worked great.  Thank you!