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

[Solved] First time grouping or sorting sometimes gives empty grid

2 Answers 99 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.
Hans Notelteirs
Top achievements
Rank 1
Hans Notelteirs asked on 28 Sep 2009, 01:44 PM
Hi,

To fill my grid I call a service in an async way, and when the call is completed the itemssource of the grid is set.
When I start up my application, the grid gets filled the right way, but sometimes the first time that I want to sort or group a column I get an empty grid. It doesn't matter how long I wait, the grid stays empty. The only way to fill it again, is to sort the column again and then it is filled. Is there any way to solve this behaviour?

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 28 Sep 2009, 01:52 PM
Hello Hans,

Can you check if DataLoadMode is set to "Asynchronous"? If this is the case you can safely remove this since the service itself is asynchronous. You can show/hide explicitly the grid loading indicator similar to this demo:
http://demos.telerik.com/silverlight/#GridView/DomainDataSource

All the best,
Vlad
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
Hans Notelteirs
Top achievements
Rank 1
answered on 28 Sep 2009, 02:01 PM
Hi Vlad,

Works like a charm for me. 

Thx!
Tags
GridView
Asked by
Hans Notelteirs
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Hans Notelteirs
Top achievements
Rank 1
Share this question
or