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

Filtered Source

2 Answers 67 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 06 Aug 2013, 03:59 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 07 Aug 2013, 08:58 AM
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 >>
0
Aaron
Top achievements
Rank 1
answered on 07 Aug 2013, 01:09 PM
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;
Tags
DataFilter
Asked by
Aaron
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Aaron
Top achievements
Rank 1
Share this question
or