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

How to enable filtering while radgridview loads

1 Answer 50 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
LM IT
Top achievements
Rank 2
LM IT asked on 10 Oct 2014, 08:19 AM
Hello,

I would like that the users would be able to add filters while the grid loads asynchronously (loads a lot of data for ~10 seconds). Any ideas on how to make this possible as while the grid loads the filter-combobox is empty.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 10 Oct 2014, 01:46 PM
Hi,

In order to populate your distinct values asynchronously, you will have to assign e.ItemsSource first to some ObservableCollection before the method returns and then you can populate this observable collection asyncrhonously.
For example, you can create an empty ObservableCollection in the method and assign it to e.ItemsSource before doing anything else. Then in your async callback you can fill this exact same collection with the data. 

I have attached a demo solution which I hope you can use in your case.


Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DataFilter
Asked by
LM IT
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
Share this question
or