Hello jean michel,
If the RadTreeView
is databound to a business object, when you are dropping the items in the TreeView
you won't be able to easily get the new RadTreeViewItem
that is created to nest the dropped object. Therefore it would be hard to display the Image from the ListBoxItem
using the DefaultImageSource
I attached a new project that illustrates how to drag items from the ListBox
and drop them into certain TreeViewItems
(in this case you can drop items before or after an employee and inside a department in the TreeView). Also please note that I added an IconPath
property to the Employee
class and also added an Image
to the EmployeeTemplate
in order to allow images to be displayed in front of the employees.
This solution is much better than the one, using the DefaultImageSource
property of the RadTreeViewItem
to display the dragged image. Please give it a try and let me know if it works for you.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.