Can RadGridView filter to be synchronized with ICollectionView?

8 posts, 1 answers
  1. Alex
    Alex avatar
    19 posts
    Member since:
    Feb 2012

    Posted 09 Mar 2012 Link to this post

    In http://www.telerik.com/help/silverlight/gridview-sorting-programmatic.html said that sortin is automatically synchronize.
    Is there a way to synchronize filter with ICollectionView?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Mar 2012 Link to this post

    Hi,

    Since the grid filtering is very complex compared to plain predicate in ICollectionView this cannot be achieved. 

    All the best,
    Vlad
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Alex
    Alex avatar
    19 posts
    Member since:
    Feb 2012

    Posted 09 Mar 2012 Link to this post

    Is there any sense in binding RadGridView.ItemsSource to CollectionView in this case?
  4. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Mar 2012 Link to this post

    Hi,

     You can use our QueryableCollectionView instead plain ICollectionView for better integration. 

    Greetings,
    Vlad
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  5. Alex
    Alex avatar
    19 posts
    Member since:
    Feb 2012

    Posted 09 Mar 2012 Link to this post

    Thanks, your answer are very helpful for me.
  6. Alex
    Alex avatar
    19 posts
    Member since:
    Feb 2012

    Posted 09 Mar 2012 Link to this post

    How i can add filter to QuerableCollectionView that UI filtering mechanism be affected?
    I don't have access to radGridView control. Only to collection.
  7. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 09 Mar 2012 Link to this post

    Hi,

    You can do this:

    QueryableCollectionView.FilterDescriptors.Add(new FilterDescriptor("Name", FilterOperator.IsEqualTo, "John")));

    But the grid has no way of knowing about this and updating its filtering UI.

    If you want to filter programmatically and the UI to understand this and update itself, check out this example.

    All the best,
    Ross
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  8. Alex
    Alex avatar
    19 posts
    Member since:
    Feb 2012

    Posted 09 Mar 2012 Link to this post

    I don't have access to radGridView control. Only to collection.   
Back to Top