Currently, I'm trying to use Drag/Drop in my application however none of the events in relation to this are firing. Is this a known issue? If so, are there workarounds?
I've also tried to use ItemDoubleClick even which is also not getting fired.
Please do let me know.
5 Answers, 1 is accepted
Are you trying to attach to the events described in the Drag and Drop article? If so, keep in mind that before Q2 2014 we used RadDragAndDropManager that uses these events. Since Q2 2014 our TreeView uses new drag/drop implementation through DragDropManager. So far the events cannot be attached from the XAML and this needs to be done in c# code:
You can also read about the DragDropManager here.
About the double click event, I test it on my side and it is fired as expected.
Please find a simple demonstration of using these events with the TreeView project attached.
If you have further problems with this please let us know and if possible provide us with a sample project demonstrating those issues.
Normally, RadTreeView supports drag and drop functionality out of the box. You can enable it by setting the IsDragDropEnabled property to true. In the example I gave you the drag/drop doesn't work as expected because of the code in the DragInitialize event handler.
The MessageBox in the handler takes the mouse focus. If you comment it you will be able to change the position of the item in the tree.
If this is not your case please provide us with an example demonstrating the issue, so we can give you more specific ways to resolve it.
[quote]Ivan said:Since Q2 2014 our TreeView uses new drag/drop implementation through DragDropManager. So far the events cannot be attached from the XAML and this needs to be done in c# code[/quote]
Is it still the case that the drag and drop events for the new DragDropManager can't be attached through XAML? Will this be changed anytime in the future?
This is still the case - the DragDropManager events cannot be attached in XAML. At this point there are not plans for introducing this.