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

ListBox Destination Item Background

1 Answer 33 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Josh King
Top achievements
Rank 2
Josh King asked on 29 Nov 2010, 07:50 PM
I would like to change the color of the destination ListBoxItem when it is being dragged onto from the source.  It seems that it's easy to get the source, but how can one get the destination item?  I also need to get the destination item on the drop.    

Thanks

1 Answer, 1 is accepted

Sort by
0
Josh King
Top achievements
Rank 2
answered on 29 Nov 2010, 10:46 PM
I figured it out.  Needed to include this setter in the Item style:  telerik:RadDragAndDropManager.AllowDrop, and remove that setting from the ListBox
<Setter Property="telerik:RadDragAndDropManager.AllowDrop"
               Value="True" />
<Setter Property="telerik:RadDragAndDropManager.AllowDrop"
               Value="True" />
<Setter Property="telerik:RadDragAndDropManager.AllowDrop"
               Value="True" />
<Setter Property="telerik:RadDragAndDropManager.AllowDrop"
               Value="True" />
<Setter Property="telerik:RadDragAndDropManager.AllowDrop"
               Value="True" />
<Setter Property="telerik:RadDragAndDropManager.AllowDrop"
               Value="True" />
<Setter Property="telerik:RadDragAndDropManager.AllowDrop"
               Value="True" />
Tags
DragAndDrop
Asked by
Josh King
Top achievements
Rank 2
Answers by
Josh King
Top achievements
Rank 2
Share this question
or