Hello,
I am having an issue with reordering multiple selected items in a RadListBox. I am trying to select multiple items in a RadListBox, and drag them within the same RadListBox to reorder them. However, it doesn't always work. When I start to drag, sometimes I will be able to reorder the items (cursor indicator and drop visual indicator in the RadListBox show normally), and sometimes it won't. The drag visual always works normally, but it looks like AllowDrop is immediately false sometimes (not sure if that is what is actually happening, but it's the best way I can describe it). I have a test RadListBox for theme visual feedback and testing, and the behavior is happening there. Here is the code I am using:
<
telerik:RadListBox
SelectionMode
=
"Extended"
>
<
telerik:RadListBoxItem
Content
=
"Item 1"
Style
=
"{DynamicResource ReorderableListItemStyle}"
/>
<
telerik:RadListBoxItem
Content
=
"Item 2"
Style
=
"{DynamicResource ReorderableListItemStyle}"
/>
<
telerik:RadListBoxItem
Content
=
"Item 3"
Style
=
"{DynamicResource ReorderableListItemStyle}"
/>
<
telerik:RadListBoxItem
Content
=
"Item 4"
Style
=
"{DynamicResource ReorderableListItemStyle}"
/>
<
telerik:RadListBoxItem
Content
=
"Item 5"
Style
=
"{DynamicResource ReorderableListItemStyle}"
/>
<
telerik:RadListBoxItem
Content
=
"Item 6"
Style
=
"{DynamicResource ReorderableListItemStyle}"
/>
<
telerik:RadListBoxItem
Content
=
"Item 7"
Style
=
"{DynamicResource ReorderableListItemStyle}"
/>
<
telerik:RadListBoxItem
Content
=
"Item 8"
Style
=
"{DynamicResource ReorderableListItemStyle}"
/>
<
telerik:RadListBox.DragDropBehavior
>
<
telerik:ListBoxDragDropBehavior
/>
</
telerik:RadListBox.DragDropBehavior
>
</
telerik:RadListBox
>
And here is the code for ReorderableListItemStyle:
<
Style
x:Key
=
"ReorderableListItemStyle"
TargetType
=
"telerik:RadListBoxItem"
BasedOn
=
"{StaticResource RadListBoxItemStyle}"
>
<
Setter
Property
=
"telerik:DragDropManager.AllowCapturedDrag"
Value
=
"True"
/>
</
Style
>
Is there something I am missing? I am using Telerik WPF R3 2020.