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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Refreshing SfCarousel UI when a collection of SfCarouselItem changes in async method

Thread ID:

Created:

Updated:

Platform:

Replies:

142886 Feb 25,2019 08:18 AM UTC Mar 1,2019 03:49 AM UTC Xamarin.Forms 1
loading
Tags: SfCarousel
Prashant Purmah
Asked On February 25, 2019 08:18 AM UTC

When populating an ObservableCollection of SfCarouselItems (whose Item Content is set to a content view) in an async method, is there a way to refresh the SfCarousel UI in a content page ? 


Currently, once the SfCarousel UI is initialised, it does not refresh when the carousel collection changes. 


And there is no Refresh Command like in a ListView to reload the items.


How can I update my carousel items when the collection changes ? 


Dhanasekar R [Syncfusion]
Replied On March 1, 2019 03:49 AM UTC

Hi Rubens, 
 
Greetings from Syncfusion. 
                                                                                                               
When dynamically adding the SCarousel item to the ObservableCollection, the carousel UI will be automatically get refreshed and it will be added to the item source property. Based on your requirement we have prepared the sample in which we will be adding a SfCarousel item to the ObservableCollection through a button click and we can able to see that the carousel UI get refreshed when the carousel item is added. Please have the sample from the below link.                             
 
                                                                                                                              
 
Regards, 
Dhanasekar  
 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon