We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to do recycled and retained views?

Thread ID:

Created:

Updated:

Platform:

Replies:

130155 Apr 25,2017 12:57 PM Sep 21,2017 01:15 PM Xamarin.Forms 5
loading
Tags: SfListView
Emil
Asked On April 25, 2017 12:57 PM

XF listview has option to set recycled or retained views. how dows sfdatagrid works? how can we implement optional?

Pavithra  Sivakumar [Syncfusion]
Replied On April 26, 2017 04:26 AM

Hi Emil, 
 
Thank you for using Syncfusion Products. 
 
Our SfDataGrid by default will recycle the views there by reusing the rows and columns upon scrolling. It is not possible to implement optional in SfDataGrid.  
 
Regards, 
Pavithra S 


Emil
Replied On July 31, 2017 01:48 PM

Hi,

Does SfListView is using CachingStrategy="RecycleElement" like on XF ListView? or should we set it somehow? I couldnt figure it out.


thanks,

Emil


Dinesh Babu Yadav [Syncfusion]
Replied On August 1, 2017 07:32 AM

Hi Emil, 
 
Currently SfListView does not use caching mechanism but it is completely developed with UI Virtualization and Item recycling concept. It creates the element only which are in view on initial loading and while scrolling, we have cache the created elements and recycled it by updating only the BindingContext of the SfListView item which improves the layout performance and scrolling performance in each platforms. 
 
Regards, 
Dinesh Babu Yadav 
 


Jared Thirsk
Replied On September 20, 2017 10:30 AM

Is it possible to try disabling UI Virtualization in the listview?  I only have a few items and wonder if it will speed things up for me.

Right now, it is ok on some devices, but unusably slow on others.

My SfListView cells have a SfRating inside.


Dinesh Babu Yadav [Syncfusion]
Replied On September 21, 2017 01:15 PM

Hi Jared, 
 
Sorry for the inconvenience. 
 
Currently, we don’t have support for RetainElement like Xamarin Forms ListView at our end. But we would like to let you know that, the SfListView is completely developed with UI Virtualization concept which creates the element which are in view on initial loading and while scrolling, we have reused the created elements by updating only the BindingContext of the item which improves the scrolling performance and memory consumptions in each platforms. 
 
However, the RetainElement feature creates a new instance for each items in the underlying collection which reduces the initial loading time and consumes more memory consumptions. Additionally, we need to provide the UI Virtualization concept in RetainElement also because if the underlying collection count is larger say 1000, then the performance bottlenecks will occur in real time scenarios when the user scrolls.  
 
So, could you please share the actual requirement and application scenario which would help us to implement the reported feature at our end better and update you an appropriate solution. 
 
Please let us know if you require further assistance. 
 
Regards,                                                                                                                                                                
Dinesh Babu Yadav 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;