CollectionView scroll to last item doesn't work on iOS

1 Answer 27 Views
CollectionView
Dev
Top achievements
Rank 1
Dev asked on 17 Jan 2025, 08:05 AM

When trying to use ScrollItemIntoView to show the last item of a CollectionView, It doesn't scroll to the end of the list and only show the first pixel on the item. Need to manually scroll to the bottom to view the whole line.

Works correctly on Windows but not on iOS.

.Net 8, Telerik 9.0.0

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 17 Jan 2025, 03:07 PM

Hi,

I have sent a reply to the support ticket. I am pasting it here:

"I tested the case and reproduced the behavior. I have logged an issue on your behalf here: https://feedback.telerik.com/maui/1676150-collectionview-ios-scroll-to-last-item-shows-to-the-first-pixels-of-the-last-item

As a workaround add the following code to the ControlPage definition where the CollectionView is defined:

<ContentPage ...
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
ios:Page.UseSafeArea="True">

Regards,
Didi
Progress Telerik

Tags
CollectionView
Asked by
Dev
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or