This is a migrated thread and some comments may be shown as answers.

Show spinner/progress while data is loading

3 Answers 840 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mike Cohen
Top achievements
Rank 1
Mike Cohen asked on 27 Jan 2010, 05:35 PM
I am binding the GridView to a ViewModel that is responsible for loading the data from my repository. I would like to show a spinner control while the data is being loaded. Let's suppose I have a property on my ViewModel named DataLoading. I know I can accomplish this with a style, but I'm not sure which element of the GridView I should apply the style to.

How can I accomplish this with the GridView? I can easily hide the whole GridView and show a spinner, but instead I'd like to replace the area in which rows are presented with a spinner.

Thanks,
Mike

3 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 28 Jan 2010, 12:11 PM
Hi Mike Cohen,

You can use the dependency property IsBusy of the RadGridView. Please check the attached sample project which demonstrates it.

If you have any further questions do not hesitate to contact us.

Best wishes,
Tsvyatko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Magesh
Top achievements
Rank 1
answered on 06 Apr 2017, 07:40 AM
How can i do the same in WPF MVVM?
0
Ivan Ivanov
Telerik team
answered on 06 Apr 2017, 04:44 PM
Hello,

I am attaching a MVVM-compatible version of the project. It is updated with the latest official binaries.

Regards,
Ivan Ivanov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Mike Cohen
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Magesh
Top achievements
Rank 1
Ivan Ivanov
Telerik team
Share this question
or