Filtered Source

3 posts, 1 answers
  1. Aaron
    Aaron avatar
    17 posts
    Member since:
    Jan 2011

    Posted 06 Aug 2013 Link to this post

    Hello,

    Is there any way that I can bind to the Filtered Source so that I can update something else on my control only when th Filtered Source changes.  I'm currently listening to all of the filter descriptor collection events, but the filtered source doesn't update until after all of those events fire when removing a filter.  So if I could do something like dataFilter.FilteredSource.DataChanged += blahblah it would make everything a lot easier.

    Thanks,
    Aaron
  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 07 Aug 2013 Link to this post

    Hello,

    Cast the FilteredSource to INotifyCollectionChanged and attach to the CollectionChanged event.

    Regards,
    Rossen Hristov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Aaron
    Aaron avatar
    17 posts
    Member since:
    Jan 2011

    Posted 07 Aug 2013 Link to this post

    Sweet.  That seems to work.  I thought about doing that, but I thought that it would create a copy of the filtered source if I was casting it.  Here's the code I ended up using:

    ((INotifyCollectionChanged)this.radDataFilter.FilteredSource).CollectionChanged += ScatterChartEditor_CollectionChanged;
Back to Top