How to enable filtering while radgridview loads

2 posts, 1 answers
  1. LM IT
    LM IT avatar
    9 posts
    Member since:
    Feb 2014

    Posted 10 Oct 2014 Link to this post


    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.
  2. Answer
    Dimitrina avatar
    3769 posts

    Posted 10 Oct 2014 Link to this post


    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.


    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.

Back to Top