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 display an animation till the SfDataGrid is loading?

Platform: Xamarin.Forms |
Control: SfDataGrid |
Published Date: January 27, 2017 |
Last Revised Date: January 30, 2017
Tags: general

SfDataGrid takes some time for its initial loading of data and it largely depends on the type and size of the bound data. Thus, you can load an animation in the meantime the grid is loading using an ActivityIndicator in the SfDataGrid.GridLoaded event.

Refer the below code in which an activity indicator is created and displayed until the SfDataGrid is loaded.

 

When the above code is executed, you can get the below output:

 

C:\Users\suhasini.suresh\AppData\Local\Microsoft\Windows\INetCacheContent.Word\BusyIndicator.Droid.png

 

Sample Link:

How to display a busy indicator till the SfDataGrid is loading

 

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Jon Lacey
Feb 10, 2019

Hi,

This example doesn't really show the indicator while the grid is loading, it just shows the indicator for a specific amount of time.

What is the grid takes longer than "5000" to load?

Reply

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