Hello,
Thank you for your post. I have been looking into and I created a sample project for you with the functionality you want. Basically I set the XamDataTrees’ AllowDragDropCopy Property to true, which means that you hold “Ctrl” key while dragging, the DragDropEventArgs’ OperationType is Copy and you can implement copying of the Node instead the built in Move operation. Also you should drop the Node over another Node, not between two Nodes. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
It's great. Thank you.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi,
Great Help.
I am looking for the same functionality. But one problem.
Question: Sample successfully keeps item in source when dropped on target. But if a drop it on source, it adds again and I have duplicate.
What I am looking for: Items can be re-ordered within tree using drag-drop(no duplicates while doing this) but at the same time when items are moved across tree they do not get removed from source.
Can you please advice?
Thanks in advance
Hello Pratik,
I have modified the sample i uploadewd before, so now it works as you want. Basically I added a check in the NodeDragDrop event handler to determine whether the drag source and drop target are from the same DataTree and if they are, I let the XamDataTree to use its built in DragDrop.
Hope this helps you.
Awesome.. man
you led exactly where I was trying to go but couldn't figure out.
Great help. Thanks a lot.
Pratik
Hello Harinatha,
This behavior is still the default one and if you want to be able to change it you can log a product idea here:
http://ideas.infragistics.com/
I am facing the same and exact problem. Is this fixed?
Thanks
Hari
I have contacted with our product managers and they said that the feature is not yet on the backlog and scheduled.
I am facing another problem with drag & drop between two trees if they are vertically stakced.
The same problem was reported here:
http://es.infragistics.com/community/forums/p/61565/407092.aspx#407092
Is there any solution to this problem?
Thanks,