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: November 16, 2018).
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?

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.

C#

 

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

C#

 

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

XAML

 

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

C#

 

Screenshot:

 

Click here to download the sample.

Article ID: Published Date: Last Revised Date: Platform: Control:
8551 02/28/2018 02/28/2018 Xamarin.Forms SfListView
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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