Hello, I would like to perform Drag & Drop function from one ListBox to another ListBox as documented in this link:
http://www.telerik.com/help/wpf/radlistbox-features-dragdrop.html
However, it is not working for me. I'm able to drag items, but nothing happens while dropping. Maybe the documentation is clear enough of the necessary configurations needed for the ListBox which you want to drag items from, and the ListBox which you want to drop items to.
Here are my codes:
(ListBox I want to drag from)
(ListBox I want to drag to)
http://www.telerik.com/help/wpf/radlistbox-features-dragdrop.html
However, it is not working for me. I'm able to drag items, but nothing happens while dropping. Maybe the documentation is clear enough of the necessary configurations needed for the ListBox which you want to drag items from, and the ListBox which you want to drop items to.
Here are my codes:
(ListBox I want to drag from)
<
telerik:RadListBox
Margin
=
"5,5,5,5"
Grid.Column
=
"0"
Grid.Row
=
"3"
x:Name
=
"listBoxItems"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
Width
=
"250"
ItemsSource
=
"{Binding}"
ItemContainerStyle
=
"{StaticResource DraggableListBoxItem}"
ItemTemplate
=
"{StaticResource ListBoxCustomTemplate}"
SelectionMode
=
"Multiple"
TextPath
=
"Serial"
>
<
telerik:RadListBox.DragVisualProvider
>
<
telerik:ScreenshotDragVisualProvider
/>
</
telerik:RadListBox.DragVisualProvider
>
<
telerik:RadListBox.DragDropBehavior
>
<
telerik:ListBoxDragDropBehavior
/>
</
telerik:RadListBox.DragDropBehavior
>
</
telerik:RadListBox
>
(ListBox I want to drag to)
<
telerik:RadListBox
Grid.Row
=
"0"
Grid.Column
=
"2"
Margin
=
"0, 5, 5, 5"
x:Name
=
"listBoxIssue"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
Height
=
"690"
Width
=
"793"
ItemsSource
=
"{Binding}"
ItemContainerStyle
=
"{StaticResource DraggableListBoxItem}"
ItemTemplate
=
"{StaticResource ListBoxCustomTemplate}"
>
<
telerik:RadListBox.DragVisualProvider
>
<
telerik:ScreenshotDragVisualProvider
/>
</
telerik:RadListBox.DragVisualProvider
>
<
telerik:RadListBox.DragDropBehavior
>
<
telerik:ListBoxDragDropBehavior
/>
</
telerik:RadListBox.DragDropBehavior
>
</
telerik:RadListBox
>