CollectionView Refresh

1 Answer 125 Views
CollectionView
Joe
Top achievements
Rank 2
Iron
Veteran
Iron
Joe asked on 19 Feb 2025, 08:51 PM

I have a CollectionView with Groups which does not seem to be refreshing when groups are expanded/collapsed.  If I move the control (kind of force a scroll) things seem to refresh

What can I do to force the control to refresh.  Can I capture when the user Expand/Collapse and do a Load.  I have looked at LoadOnDemand, but I don't see how this would work.

 

Example

Control before expand

After Expand (You can see Pipeline Device shows expanded, but nothing is visible)

After do a scroll on control

 

Joe
Top achievements
Rank 2
Iron
Veteran
Iron
commented on 20 Feb 2025, 05:19 PM | edited

I am going back through my builds, and it looks like the build prior to updating to net 9.0.200 is responding correctly.  Although strangely, it seems OK on a device (iOS 18) but not running on a simulator (iOS 18).

Correct Behavior

  • .net 9.0.102
  • Telerik 9.0.0
  • Microsoft.Maui.Controls 9.0.30
  • Microsoft.Maui.Controls.Compatibility 9.0.30
  • ** This build has Community Toolkit referenced but it is not used

After upgrading to net 9.0.200 and other references the not-refresh behavior begins.  I am still working to see if I can identify an exact change that causes the issue

Edit: After cleaning up my system (uninstalling newer net 9 and removing app from simulator) I am seeing correct behavior on simulator

Joe
Top achievements
Rank 2
Iron
Veteran
Iron
commented on 20 Feb 2025, 07:28 PM

From testing the change:

Microsoft.Maui.Controls 9.0.30 > 9.0.40

is the breaking change.

.net SDK was kept at 9.0.102

Telerik was updated to 10.0 which works. 

Something in the underlying Maui Controls affects this refresh behavior on the RadCollectionView

1 Answer, 1 is accepted

Sort by
1
Accepted
Nasko
Telerik team
answered on 24 Feb 2025, 09:53 AM

Hello Joe,

With .NET MAUI versions 9.0.30 and 9.0.40, we’ve observed several layout issues in RadCollectionView. I can confirm that the issue you’re encountering when groups are collapsed or expanded is one of these known issues. These issues are expected to be resolved with our next official release. In the meantime, I recommend reverting to version 9.0.14, which is the latest stable version of .NET MAUI released with Visual Studio. You can switch back to 9.0.14 by specifying the MauiVersion in your .csproj file.

I hope this information is helpful.

Regards,
Nasko
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Jones
Top achievements
Rank 1
commented on 27 Feb 2025, 02:55 PM

Hi Nasko,

To reproduce this issue you may use https://github.com/telerik/maui-samples/tree/main , start the ControlsSamples in iOS and you will see that with 9.0.40 you can't scroll through the list of controls on the main page.
Didi
Telerik team
commented on 28 Feb 2025, 09:51 AM

hi Jones,

Use the maui version Nasko suggested. As Nasko explained with MAUI 9.0.30 and 9.0.40 we reproduced several issues in the RadCollectionView related to the layout, this includes scrolling, swiping, etc. 

Jones
Top achievements
Rank 1
commented on 28 Feb 2025, 10:57 AM

Hi, I can't downgrade MAUI because the minimal version in other used nuget is 9.0.30.
I just wanted to give a very simple way for Telerik to reproduce the error.
Joe
Top achievements
Rank 2
Iron
Veteran
Iron
commented on 16 Mar 2025, 04:54 PM

@NaskoTelerik

I am noticing some CollectionView scrolling issues on devices (everything works OK on iOS emulator).  Is this related to this?

On my device scrolling does not work.  I even added buttons to scroll as a temporary work-around where I get the first/last item and use ScrollItemIntoView and that does not work on device.  Basically no scrolling 

 

Didi
Telerik team
commented on 17 Mar 2025, 07:39 AM

Whether the issue happens when using 9.0.40 or 9.0.14 version? 
Also could you please send the page in which the behavior happens and a video of the issue? 
Tags
CollectionView
Asked by
Joe
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Nasko
Telerik team
Share this question
or