Dynamic items in SfListView

Dear Team,

while working on Xamarin Forms with some of your plugins, I've encountered some difficulties while implementing SfListView.

- I'm actually using a CollectionView for showing my list of items and with some actions I can hide and show dynamically some of those items. When I tried to change my CollectionView to SfListView I couldn't manage to show and hide dynamically my rows. Do I have to enable any specific property or function for making it to work correctly?
- With SfListView is it possible to add items inside the ObservableCollection at fixed position and let those show inside the list "in real time"?


Regards

1 Reply 1 reply marked as answer

LN Lakshmi Natarajan Syncfusion Team March 29, 2021 08:58 AM UTC

Hi Danilo, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported queries from our side. 
 
Query 
Response 
In SfListView, I couldn't manage to show and hide dynamically my rows 
The SfListView allows you to customize the items height by using QueryItemSize event. You can set the ItemSize as 0 in the QueryItemSize event, to hide the item.  
 
Please refer to our user guidance document regarding the same, 
With SfListView is it possible to add items inside the ObservableCollection at fixed position and let those show inside the list "in real time"? 
Yes. You can update the ObservableCollection at run time in SfListView. You can use Insert method to update an item at the specific index. 
 
Please refer to the following documentation to update observable collection at run time, 
 
Please let us know if you need further assistance. 
 
Lakshmi Natarajan 
 


Marked as answer
Loader.
Up arrow icon