Strange behavior of SfListView when filtering

Hi. I'm having a strange issue with SfListView. I'm not able to say exactly when it started to appear. It was working fine and we only noticed the problem recently. SfListView is inside a grid with a search bar at the top. It's filtered when user type in search bar. Everything works correctly, except in a given situation. When we type, suddenly, there's a huge blank space before the first item (the items seams to be moved to bottom). If we continue filtering, it refreshes and first item get its position correctly.

Here are some screenshots. Everything is fine when typing "swis" in the search bar. When I type "swiss", the problem occurs, although the number of found items doesn't change. If I continue and type "swiss d", it reverts to a correct position when filtering the last found item.

screnshot1.png screenshot2.png screenshot3.png

The problem does not depend on the number of items displayed. It can occur with one or more items. But only if items are not filling the height available. I've tried to disable sticky group header, tried to remove group header, tried to change item template, etc. Nothing seems to fix the problem. Based on these screenshots, are you able to point me to the right direction to fix this?


2 Replies 1 reply marked as answer

LN Lakshmi Natarajan Syncfusion Team April 12, 2022 02:38 PM UTC

Hi Jacques,


We are facing layout issues when updating the ItemsSource at runtime (for example, filtering) with Xamarin.Forms latest v5.0.0.2337. Also, we have fixed the reported issue and included the issue fix in our latest Weekly NuGet release update version 20.1.0.48 which is available for download (https://www.nuget.org/). 

Please update the SfListView package to the latest version to resolve the reported issue.


Regards,

Lakshmi Natarajan



Marked as answer

JA Jacques replied to Lakshmi Natarajan April 13, 2022 06:09 AM UTC

Hi. Thanks for the prompt reply. I confirm that the problem is fixed with latest version 20.1.48.


Loader.
Up arrow icon