Hi,
I'm using the DragDropManager to allow dragging from one RadListBox to another RadListBox. But I need to identify the exact RadListBoxItem on the target list box where the item was dropped onto.
I was hoping to achieve this by using this style for the target list box:
And applied this to the list box:
Note: I did not set AllowDrop=true on the list box itself (I tried it, but I made no difference).
But my DropHandler never returned the list box item, instead I was getting the list box itself.
BTW
Is there a way to highlight the list box item below the the mouse while dragging an item over it?
Thanks,
Thorsten
(I'm using RadControls for WPF Q2 2013)
I'm using the DragDropManager to allow dragging from one RadListBox to another RadListBox. But I need to identify the exact RadListBoxItem on the target list box where the item was dropped onto.
I was hoping to achieve this by using this style for the target list box:
<
Style
x:Key
=
"DroppableListBoxItem"
TargeType
=
"telerik:RadListBoxItem"
>
<
Setter
Property
=
"AllowDrop"
Value
=
"true"
/>
</
Style
>
And applied this to the list box:
<
telerik:RadListBox
ItemContainerStyle
=
"{StaticResource DroppableListBoxItem}"
ItemTemplate
=
"{StaticResource ItemTemplate}"
ItemsSource
=
"{Binding Path=MyItems}"
/>
Note: I did not set AllowDrop=true on the list box itself (I tried it, but I made no difference).
But my DropHandler never returned the list box item, instead I was getting the list box itself.
BTW
Is there a way to highlight the list box item below the the mouse while dragging an item over it?
Thanks,
Thorsten
(I'm using RadControls for WPF Q2 2013)