Unplanned
Last Updated: 16 Dec 2024 13:13 by ADMIN
Nico
Created on: 03 Dec 2024 20:09
Category: CollectionView
Type: Bug Report
0
CollectionView: Items do not appear after their visibility has been updated

See simple example baaaaif/CollectionViewFilterIssue (MainPage.xaml.cs) to reproduce, click hide and show

When items are filtered through a FilterDescriptor they are hidden - correct
Trying to show the previously hidden items they don't appear again as expected - bug

I've used a BooleanFilterDescriptor and a DelegateFilterDescriptor, both don't work.

Stops me from using the RadCollectionView control

 

5 comments
ADMIN
Yana
Posted on: 16 Dec 2024 13:13

Hello Nico,

Thank you for your patience on this.

I confirm this is an issue in the CollectionView, so I've updated the status of the feedback item to "Unplanned" - please follow the item to get notified on status changes.

For now, I would suggest the following workaround - get the inner ScrollView and call its InvalidateMeasure method when the items are shown/hidden. I've attached the updated app to demonstrate the exact approach, please download it and give it a try.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ADMIN
Didi
Posted on: 11 Dec 2024 09:53

Hi Nico,

We will need more time to review the described scenario. We will send an update by the end of this week. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Nico
Posted on: 04 Dec 2024 11:45

Addition: using a HeightRequest > needed space breaks it too.
HeightRequest="200" - works
HeightRequest="600" - doesn't work

Nico
Posted on: 04 Dec 2024 10:36

Hi Yana,

i've updated the example to use a Grid with * instead of the VST.
It works when setting a HeightRequest, but not without.

But setting a HeightRequest is not an option, so this is still a bug.
Please note - same works with RadListView which is virtualized control too

kind regards

Nico

ADMIN
Yana
Posted on: 04 Dec 2024 10:17

Hi Nico,

Thank you for sending the sample app.

I noticed the CollectionView is placed inside a VerticalStackLayout - in general this is not recommended as the CollectionView is a virtualized control and it needs to be nested in a parent which provides space for it to fall into.

I would suggest placing the CollectionView into a Grid with "*" size or setting its HeightRequest explicitly.

In the concrete case, can you just try setting HeightRequest like this:

<telerik:RadCollectionView
   x:Name="listView"
   Margin="0,5,5,0"
   ItemsSource="{Binding MenuItems}"
   HeightRequest="200"
  SelectionMode="Single">

and check how the control behaves? This resolves the issue on my side.

I'll be looking forward to your reply.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.