This is a migrated thread and some comments may be shown as answers.

Drag Tooltip the Namespace of the ViewModel

2 Answers 42 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Saw Lwin
Top achievements
Rank 1
Saw Lwin asked on 09 Apr 2014, 02:15 PM
Hi Telerik Support,

Currently, I am facing an issue with DragTooltip in RadTreeView. I am currently implementing drag and drop in RadTreeView object using DragDropManager. I am using the databinding to construct the hierarchy. I noted that DragTooltip supposed to display text of the dragover treeview item. However, in my project, DragTooltip is displayed the namespace of the viewmodel which (i.e WpfApplication2.DataItem) instead of the text displayed in treeviewitem (i.e Item2).

Can anyone advice me how to solve the above mentioned issue.


Thanks.

With Best Regards,
Saw

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 11 Apr 2014, 10:46 AM
Hello,

Can you send me a sample project or a code snippet which demonstrates your implementation. More specifically how you set the DragVisual of the drag event arguments. This will allow me to test it and investigate further the issue.

Thank you in advance for the cooperation.

Regards,
Martin
Telerik
 

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.

 
0
Saw Lwin
Top achievements
Rank 1
answered on 14 Apr 2014, 01:28 AM
Hi Martin,

I have solved the issue by myself. It is because, The treeviewitem doesn't understand the data model which I binded to. So I override the ToString method of my data model to return the desire property value. So during drag, the dragtooltip display the correct value.

Thanks for your response.

With Best Regards,
Saw Lwin Oo
Tags
TreeView
Asked by
Saw Lwin
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Saw Lwin
Top achievements
Rank 1
Share this question
or