QueryableCollectionView FilterDescriptors CollectionChanged event not firing

2 posts, 0 answers
  1. Chris
    Chris avatar
    1 posts
    Member since:
    Oct 2013

    Posted 01 Mar Link to this post

    We have a standard WPF MVVM project.  In one view model we have a QueryableCollectionView to which a radgridview is bound.  When the user filters the grid we had expected the QueryableCollectionView.FilterDescriptors.CollectionChanged to be fired but nothing is happening.  When we inspect the FilterDescriptors through visual studio we can see the collection is present.  Is this binding incorrect or am I missing something else?

    Any help appreciated:


    DisplayTrades = new QueryableCollectionView(displayTradeSource, typeof(TradeViewModel));
    DisplayTrades.FilterDescriptors.CollectionChanged += CollectionChanged_Event;

    private void CollectionChanged_Event(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
               throw Exception("test");



  2. Stefan X1
    Stefan X1 avatar
    486 posts

    Posted 02 Mar Link to this post

    Hello Chris,

    I tried to reproduce such issue on my end, but to no avail. Can you please check the attached project?
    You should notice, that when the user performs a filtering operation, the FilterDescriptors collection of the QCV raises the CollectionChanged event as expected. Am I missing something?

    Can you please also shed more light on the need to use the QueryableCollectionView in such manner? Basically, RadGridView exposes Filtering/Filtered events from which you can benefit instead of using the FilterDescriptors.CollectionChanged event.

    Best Regards,
    Stefan X1
    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top