Hello,
I've got a simple SfListView linked to a ObservableCollection (EditingRooms).
I've enable dragging object to re-order the list.
As I use grouping also, I can't use DragDropController.UpdateSource to auto-update my collection (as you answered me previously).
So I tried to manually update my collection on draging event with this simple code :
private void ListView_ItemDragging(object sender, ItemDraggingEventArgs e) {
// Reorder the item in underlying collection.
if (e.Action == DragAction.Drop && e.OldIndex != e.NewIndex) {
EditingRooms.Move(e.OldIndex, e.NewIndex);
}
}
When I drag an item, the collection is correctly updated, but the SfListView show the previous state (before re-ordering). If I force an update by clearing ItemSource and reseting it, it shows the correct order. So the SfListView doesn't handle correctly the move.
I also have a delete feature that works great, with a simple EditingRooms.Remove(...), that's why I think it's a bug on your side.
Do you have a solution please ?
Thanks