Stores sorting, grouping, and filter settings, either from an existing view or as locally assigned settings.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Type Parameters:
T
Syntax:
public class CollectionViewProvider<T> where T : IDataItem, INotifyPropertyChanged
Inheritance: objectCollectionViewProvider<T>
Constructors
Initializes a new instance of the CollectionViewProvider<T> class.
public CollectionViewProvider()
Initializes a new instance of the CollectionViewProvider<T> class.
public CollectionViewProvider(ICollectionView<T> sourceCollectionView)
The source collection view.
Properties
Gets or sets the filter.
public Predicate<T> Filter { get; set; }
The filter.
Gets or sets the group descriptors.
public GroupDescriptorCollection GroupDescriptors { get; set; }
The group descriptors.
Gets or sets the sort descriptors.
public SortDescriptorCollection SortDescriptors { get; set; }
The sort descriptors.
Methods
Gets the view.
public ISnapshotCollectionView<T> GetView(IEnumerable<T> source)
The source.
Returns:Raises the NotifyPropertyChanged event
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Events
Raised whenever SortDescriptors is assigned, or when GroupDescriptors or Filter changes to a different value. Mutations within descriptor collections are not reported.
public event PropertyChangedEventHandler PropertyChanged