ClassQueryableDataServiceCollectionView<TEntity>
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, IEditableCollectionView, IEditableCollectionViewAddNewItem, ICollectionView, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView, IQueryableCollectionView, IItemProperties, IDisposable, IEnumerable<TEntity>, IEnumerable where TEntity : class, INotifyPropertyChanged
Inheritance: objectQueryableCollectionViewQueryableDataServiceCollectionViewBaseQueryableDataServiceCollectionView<TEntity>
Implements:
Inherited Members
Constructors
QueryableDataServiceCollectionView(DataServiceContext, DataServiceQuery<TEntity>)
Initializes a new instance of the QueryableDataServiceCollectionView<TEntity> class.
Declaration
public QueryableDataServiceCollectionView(DataServiceContext dataServiceContext, DataServiceQuery<TEntity> dataServiceQuery)
Parameters
dataServiceContext
DataServiceContext
The DataServiceContext.
dataServiceQuery
DataServiceQuery<TEntity>
The DataServiceQuery.
Remarks
The only supported DataServiceContext.MergeOption is MergeOption.OverwriteChanges. Setting the MergeOption to anything else will result in an InvalidOperationException.
Properties
DataServiceQuery
Gets the data service query.
Declaration
public DataServiceQuery<TEntity> DataServiceQuery { get; }
Property Value
DataServiceQuery<TEntity>
The data service query.
Methods
CreateInternalList()
Called when internal list needs to be created.
Declaration
protected override void CreateInternalList()
Overrides
CreateView()
Returns IQueryable with applied filtering, sorting, grouping and paging.
Declaration
protected override IQueryable CreateView()
Returns
Overrides
GetEffectiveItemCount()
Gets the count of items depending on the page and/or grouped state.
Declaration
protected override int GetEffectiveItemCount()
Returns
The count of items.
Overrides
OnFilterDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)
Invoked when the FilterDescriptors collection changes.
Declaration
protected override void OnFilterDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
sender
Current instance of the QueryableCollectionView collection.
e
NotifyCollectionChangedEventArgs
Information about the change.
Overrides
OnFilterDescriptorsItemChanged(object, ItemChangedEventArgs<IFilterDescriptor>)
Invoked when the FilterDescriptors item changes.
Declaration
protected override void OnFilterDescriptorsItemChanged(object sender, ItemChangedEventArgs<IFilterDescriptor> e)
Parameters
sender
Current instance of the QueryableCollectionView collection.
e
ItemChangedEventArgs<IFilterDescriptor>
Information about the change.
Overrides
OnFilterDescriptorsLogicalOperatorChanged()
Invoked when the FilterDescriptors logical operator changes.
Declaration
protected override void OnFilterDescriptorsLogicalOperatorChanged()
Overrides
OnGroupDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)
Invoked when the collection changes.
Declaration
protected override void OnGroupDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
sender
Current instance of the QueryableCollectionView collection.
e
NotifyCollectionChangedEventArgs
Information about the change.
Overrides
OnGroupDescriptorsItemChanged(object, ItemChangedEventArgs<IGroupDescriptor>)
Invoked when the GroupDescriptors item changes.
Declaration
protected override void OnGroupDescriptorsItemChanged(object sender, ItemChangedEventArgs<IGroupDescriptor> e)
Parameters
sender
Current instance of the QueryableCollectionView collection.
e
ItemChangedEventArgs<IGroupDescriptor>
Information about the change.
Overrides
OnSortDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)
Invoked when the SortDescriptors collection changes.
Declaration
protected override void OnSortDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
sender
Current instance of the QueryableCollectionView collection.
e
NotifyCollectionChangedEventArgs
Information about the change.
Overrides
OnSortDescriptorsItemChanged(object, ItemChangedEventArgs<ISortDescriptor>)
Invoked when the SortDescriptors item changes.
Declaration
protected override void OnSortDescriptorsItemChanged(object sender, ItemChangedEventArgs<ISortDescriptor> e)
Parameters
sender
Current instance of the QueryableCollectionView collection.
e
ItemChangedEventArgs<ISortDescriptor>
Information about the change.
Overrides
UpdateTotalItemCount()
Called when the count of all items should be updated.
Declaration
protected override void UpdateTotalItemCount()
Overrides