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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show busy indicator on each item until data loaded for that item in SfListView?

Platform: Xamarin.Forms |
Control: SfListView |
Published Date: February 28, 2018 |
Last Revised Date: February 28, 2018

SfListView allows to display an activity indicator for an item when its data is being loaded in the background. To achieve this, load both ActivityIndicator and a Button in the same row of a Grid element inside the ItemTemplate of SfListView. Maintain a bool property in your Model class which is bound to their IsVisible property to alter their visibility at run time as like below code snippets.



Disable the visibility of Description and ActivityIndicator initially while adding items into collection.



Bind the bool values for the IsVisible properties to switch between indicator and button while loading the description.



In the Clicked event of the Button, get the row data from its BindingContext and alter the bool values accordingly.





Click here to download the sample.

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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