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

Drop Target Selection Color

3 Answers 100 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Oran
Top achievements
Rank 1
Oran asked on 27 Dec 2010, 02:28 PM
Hello,

I am implementing a drag drop between a listview and a rad treeview. Everything is fine except that when i drag an item to the treeview, the selected hovered item on the treeview does not show.
Is there any 'out of box' solution for this, or it should be implemented manually by detecting the hovered tree view item and changing its color? if it does require manual coding, do you have some short example for it?

Thanks,

3 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 28 Dec 2010, 10:01 AM
Hi Oran,

I have prepared simple project demonstrating how to achieve the desired behavior using RadTreeViewItem.IsDragOver property.

Please, have a look at the example and let us know if you need any further assistance.

Kind regards,
Tsvyatko
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Oran
Top achievements
Rank 1
answered on 28 Dec 2010, 10:29 AM
Thanks a lot! This has completely solved my problem...

Keep on the good work...

Oran
0
Oran
Top achievements
Rank 1
answered on 28 Dec 2010, 04:34 PM
Well it seems that there is still a problem :

I tried to enable the 'EnableNativeDrag' property to allow proper right to left dragging as you state in one of your forums.

But then the following line never gets the element out of the e.Options.CurrentDragPoint

var destinationTreeItem = e.GetElement<RadTreeViewItem>(e.Options.CurrentDragPoint);


Please help!!

Thanks,
Oran
Tags
DragAndDrop
Asked by
Oran
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Oran
Top achievements
Rank 1
Share this question
or