Represents a view for accessing and manipulating strongly-typed data provided by a DataServiceContext.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Controls.DataServices.dll
Type Parameters:
TEntity
The type of the entity.
Syntax:
public class QueryableDataServiceCollectionView<TEntity> : QueryableDataServiceCollectionViewBase, ICollectionView, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView, IQueryableCollectionView, IItemProperties, IDisposable, IEditableCollectionView, IEditableCollectionViewAddNewItem, IEnumerable<TEntity>, IEnumerable where TEntity : class, INotifyPropertyChanged
Inheritance: objectQueryableCollectionViewQueryableDataServiceCollectionViewBaseQueryableDataServiceCollectionView<TEntity>
Implements:
Inherited Members
Constructors
Initializes a new instance of the QueryableDataServiceCollectionView<TEntity> class.
public QueryableDataServiceCollectionView(DataServiceContext dataServiceContext, DataServiceQuery<TEntity> dataServiceQuery)
The DataServiceContext.
dataServiceQueryDataServiceQuery<TEntity>The DataServiceQuery.
The only supported DataServiceContext.MergeOption is MergeOption.OverwriteChanges. Setting the MergeOption to anything else will result in an InvalidOperationException.
Properties
DataServiceQuery
DataServiceQuery<TEntity>
Gets the data service query.
public DataServiceQuery<TEntity> DataServiceQuery { get; }
The data service query.
Methods
Called when internal list needs to be created.
protected override void CreateInternalList()
Overrides:
Returns IQueryable with applied filtering, sorting, grouping and paging.
Gets the count of items depending on the page and/or grouped state.
Invoked when the FilterDescriptors collection changes.
protected override void OnFilterDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Current instance of the QueryableCollectionView collection.
eNotifyCollectionChangedEventArgsInformation about the change.
Overrides:
Invoked when the FilterDescriptors item changes.
protected override void OnFilterDescriptorsItemChanged(object sender, ItemChangedEventArgs<IFilterDescriptor> e)
Current instance of the QueryableCollectionView collection.
eItemChangedEventArgs<IFilterDescriptor>Information about the change.
Overrides:
Invoked when the FilterDescriptors logical operator changes.
protected override void OnFilterDescriptorsLogicalOperatorChanged()
Overrides:
Invoked when the collection changes.
protected override void OnGroupDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Current instance of the QueryableCollectionView collection.
eNotifyCollectionChangedEventArgsInformation about the change.
Overrides:
Invoked when the GroupDescriptors item changes.
protected override void OnGroupDescriptorsItemChanged(object sender, ItemChangedEventArgs<IGroupDescriptor> e)
Current instance of the QueryableCollectionView collection.
eItemChangedEventArgs<IGroupDescriptor>Information about the change.
Overrides:
Invoked when the SortDescriptors collection changes.
protected override void OnSortDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Current instance of the QueryableCollectionView collection.
eNotifyCollectionChangedEventArgsInformation about the change.
Overrides:
Invoked when the SortDescriptors item changes.
protected override void OnSortDescriptorsItemChanged(object sender, ItemChangedEventArgs<ISortDescriptor> e)
Current instance of the QueryableCollectionView collection.
eItemChangedEventArgs<ISortDescriptor>Information about the change.
Overrides:
Called when the count of all items should be updated.
protected override void UpdateTotalItemCount()
Overrides: