Skip to content

Conversation

@SuthiYuvaraj
Copy link
Contributor

@SuthiYuvaraj SuthiYuvaraj commented Oct 4, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Issue Description:

Dragging and dropping an item into an empty group in the CollectionView was failing. The item could not be dropped because the drag-and-drop logic was not handling empty groups correctly.

RootCause:

The OnMove method controls drag-and-drop behaviour in CollectionView. When dropping into an empty group, the only element present is the group header, which has a different ItemViewType than normal items. Because of this mismatch, the check inside OnMove prevented the drop operation from completing.

Description of Change

Updated the condition in OnMove to validate that the dragged item is a record, allowing drops into empty groups.
Improved comments for the iOS platform implementation to clarify behaviour.

Issues Fixed

Fixes #12008

Tested the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Output Screenshot

Before Issue Fix After Issue Fix
12008before.mov
12008Final.mov

@dotnet-policy-service dotnet-policy-service bot added community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration labels Oct 4, 2025
@jsuarezruiz jsuarezruiz added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Oct 6, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-collectionview CollectionView, CarouselView, IndicatorView community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CollectionView Drag and Drop Reordering Can't Drop in Empty Group

2 participants