Hello,
Using latest version 11.2 :
I am using XamDataTree in my application.
I set IsDraggable=True on the Tree and then I am able to drag my nodes over others nodes, that works fine.
However, now I want to also be able to drag the node to another control, simple TrashCan image in my case, with IsDropTarget set correctly.
When the node passes over the control, it is not allowed.
If I remove the IsDraggable from the XamDataTree and implements the DragSource for each items, I can drag it to the control, but I can't drag my nodes in the tree anymore.
Can you help me out? I don't want to recreate the whole drag logic inside the tree.
Thank you, very appreciated.
Thank you for your post. I have been looking into it and I suggest you see this forum thread:
http://blogs.infragistics.com/forums/p/55209/319710.aspx
where it is shown how to drag & drop nodes between two XamDataTrees, which I believe can help you achieve your goal. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
No, I haven't mentionned dragging from one tree to another tree.
A) I've said that I am dragging nodes from a single tree on the same tree. This work fine alone.
B) When I wanted to add nodes drag to others controls such as "<Ìmage>" with a DropTarget tag, I had to add the drag source to each node and it removed the capability of dragging nodes on the same tree as explained in A.
To summarize and make sure it is 100% clear :
I want to drag nodes on the same tree AND drag nodes to others controls using your Drag and Drop framework.
Simon
Hello Simon,
I have been looking into your requirement and I created a sample project for you with the functionality you want to achieve. Basically I enabled the built-in functionality for Drag & Drop of the XamDataTree and added an Image, where you can drop the Nodes and they will be removed from the Tree. To achieve this I handled the NodeDragEnd event of the XamDataTree. Please let me know if this helps you or you need further assistance on this matter.
Thank you for your feedback. I am glad that I helped you to resolve your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thank you very much, it is exactly what I was looking for. You even have the same trashcan as me! lol