I've just about got my re-ordering working with empty grouping, however my last challenge (i think) is having a group stay in place when you take the last item from it and move it to another group.
I figured i have to add an item to my bound list when the event is a DragAction.start, but trying a variety of combinations of adding and refreshing datasource, sort order etc. i can't get it to cleanly work.
Is there a way to achieve this? Basically i want to:
Select an item to re-order it from one group
drag it to another group
when that dragged item is the last item in the group, an empty item is placed in the group to keep it in place
SYSuthi Yuvaraj Syncfusion Team October 10, 2022 09:08 AM
Hi Mark ,
We have checked the reported query “Keeping empty group when reordering” from our end. We
would like to inform you that we can achieve your requirement in the ItemDragging
Event in SfListView, By the Group count, you can get the last item of the group
and add the empty item with size as zero, the group header is only visible. In this case, the dummy item
is still maintained in the collection. We have attached the sample and code
snippet for your reference.