Posted 08 Nov 2010 Link to this post
Posted 09 Nov 2010 Link to this post
Have you tried Where() extension method?
ICollectionView EmployeeList = CollectionViewSource.GetDefaultView(Radc.ItemsSource);
EmployeeList.Filter = new Predicate<
object
> (Contains);
}
private bool Contains(object o)
{
EmployeeList oEmployee = o as This.RadRadioButton.Tag(Value);
if (oEmployee == null) return true;
return !(Value);
If you call Refresh for your ICollectionView in this case you will reevaluate the filter.
You just need to call Refresh method of EmployeeList in your button click event handler.