KEMBAR78
[iOS] Changing IsGrouped on runtime with CollectionViewHandler2 does not properly work - fix by kubaflo · Pull Request #31100 · dotnet/maui · GitHub
Skip to content

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Aug 9, 2025

Added a call to handler.UpdateLayout() in the MapIsGrouped method to ensure the layout is refreshed when the grouping state changes in CollectionViewHandler2 for iOS.

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!

Issues Fixed

Fixes #31096

Added a call to handler.UpdateLayout() in the MapIsGrouped method to ensure the layout is refreshed when the grouping state changes in CollectionViewHandler2 for iOS.
@Copilot Copilot AI review requested due to automatic review settings August 9, 2025 15:31
@kubaflo kubaflo requested a review from a team as a code owner August 9, 2025 15:31
@kubaflo kubaflo self-assigned this Aug 9, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where changing the IsGrouped property at runtime in iOS CollectionView using CollectionViewHandler2 does not properly refresh the layout. The fix ensures that when the grouping state changes, the collection view layout is updated to reflect the new structure.

Key Changes

  • Added a call to handler.UpdateLayout() in the MapIsGrouped method to trigger layout refresh when grouping state changes

@dotnet-policy-service
Copy link
Contributor

Hey there @@kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Aug 9, 2025
@kubaflo kubaflo added platform/ios collectionview-cv2 community ✨ Community Contribution and removed community ✨ Community Contribution labels Aug 9, 2025
@rmarinho
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/current August 14, 2025 21:26
@PureWeen PureWeen merged commit cbe51a8 into dotnet:inflight/current Aug 14, 2025
124 of 129 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 15, 2025
…not properly work - fix (#31100)

* Call UpdateLayout in MapIsGrouped on iOS

Added a call to handler.UpdateLayout() in the MapIsGrouped method to ensure the layout is refreshed when the grouping state changes in CollectionViewHandler2 for iOS.

* Added a UITest
github-actions bot pushed a commit that referenced this pull request Aug 15, 2025
…not properly work - fix (#31100)

* Call UpdateLayout in MapIsGrouped on iOS

Added a call to handler.UpdateLayout() in the MapIsGrouped method to ensure the layout is refreshed when the grouping state changes in CollectionViewHandler2 for iOS.

* Added a UITest
github-actions bot pushed a commit that referenced this pull request Aug 19, 2025
…not properly work - fix (#31100)

* Call UpdateLayout in MapIsGrouped on iOS

Added a call to handler.UpdateLayout() in the MapIsGrouped method to ensure the layout is refreshed when the grouping state changes in CollectionViewHandler2 for iOS.

* Added a UITest
github-actions bot pushed a commit that referenced this pull request Aug 22, 2025
…not properly work - fix (#31100)

* Call UpdateLayout in MapIsGrouped on iOS

Added a call to handler.UpdateLayout() in the MapIsGrouped method to ensure the layout is refreshed when the grouping state changes in CollectionViewHandler2 for iOS.

* Added a UITest
@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changing IsGrouped on runtime with CollectionViewHandler2 does not properly work

3 participants