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

[Solved] Grid asynchronous interaction

1 Answer 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Phillip Garrett
Top achievements
Rank 1
Phillip Garrett asked on 29 Sep 2010, 01:14 PM
Hi,

My senario:
I have a RadGridView whos DataContext is a separate ViewModel. I bind the RadGridViews ItemsSource to an ObservableCollection in the ViewModel. I then have several GridViewComboBoxColumns & GridViewDataColumns.
I populate the ObservableCollection with data from a WCF service. When I recieve a completed event from a asynchronous call to that service I clear the ObservableCollection and re-populate with the new data.

My problem:
The RadGridView loading animation generated automatically because I have DataLoadMode set to Asynchronous appears, but the animation freezes. Furthermore any other animations I create freeze up while the RadGridView updates its ItemsSource bindings.

Do you have any advice on how I can use RadGridView so that the user can still interact with items / see animations while ItemsSource is being updated?

Thanks
Phill

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 29 Sep 2010, 02:04 PM
Hi,

 Since your binding (WCF service) is asynchronous itself you do not need the grid asynchronous mode. If you want you can bind IsBusy grid property to your model relevant property to show the busy animation similar to this demo

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Phillip Garrett
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or