In general dragging and dropping multiple items in RadTreeListView
is a complex matter. Since you will need to handle all the cases with removing / adding sub-items from the parent and vise versa. In addition to get the data for the custom DragVisual
, you can create a new class that can be filled in the OnDragInitialize()
method. There you can pass the data around by using the DragDropPayloadManager
In order to customize the DragVisual, you can set its ContentTemplate
property to a DataTemplate
from your XAML. There you will be able to bind the controls to the properties from your new class (the one you pass to the DragDropPayloadManager
I attached an updated version of my previous project demonstrating a custom DragVisual
. Please keep in mind that the project does not handle all the cases, regarding the positioning of the items.
I hope this helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.