To enable the drag and drop reorder of items in RadListBox control when using WrapPanel as ItemsPanel you will need to create a CustomLinearDropVisualProvider that inherits LinearDropVisualProvider and override its GetLocation() method.
I created and attached a sample project for you showing the described approach.
I know this post is old, but I used the code in the attached project and encounter a bug.
The LinearDropVisual disappear when scrolling to items beyond the screen (listbox with large items). Or if you scroll to items then drag the visual also disappear.
Any help is appreciated
answered on 22 Dec 2015, 12:57 PM
Hello Mohamed Elsheihh,
This behavior of the RadWrapPanel is known to us and is related to the calculation of a container's position inside this panel. Unfortunately we cannot propose a workaround using a RadWrapPanel as it inherits from System.Windows.Controls.Panel.
Instead, I suggest using the VirtualizingWrapPanel instead where the position of a RadListBoxItem is differently calculated, because this panel inherits from System.Windows.Controls.VirtualizingPanel.
Hope this helps.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items