Class QueryableDataServiceCollectionView<TEntity>
Represents a view for accessing and manipulating strongly-typed data provided by a DataServiceContext.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Controls.DataServices.dll
Syntax
public class QueryableDataServiceCollectionView<TEntity> : QueryableDataServiceCollectionViewBase, IEditableCollectionViewAddNewItem, IEditableCollectionView, ICollectionView, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView, IWeakEventListener<NotifyCollectionChangedEventArgs>, IWeakEventListener<CurrentChangingEventArgs>, IQueryableCollectionView, IItemProperties, IDisposable, IEnumerable<TEntity>, IEnumerable where TEntity : class, INotifyPropertyChanged
Type Parameters
TEntity
The type of the entity. |
Constructors
QueryableDataServiceCollectionView(DataServiceContext, DataServiceQuery<TEntity>)
Initializes a new instance of the QueryableDataServiceCollectionView<TEntity> class.
Declaration
public QueryableDataServiceCollectionView(DataServiceContext dataServiceContext, DataServiceQuery<TEntity> dataServiceQuery)
Parameters
System.Data.Services.Client.DataServiceContext
dataServiceContext
The DataServiceContext. |
System.Data.Services.Client.DataServiceQuery<TEntity>
dataServiceQuery
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
System.Data.Services.Client.DataServiceQuery<TEntity>
The data service query. |
Methods
CreateInternalList()
Called when internal list needs to be created.
Declaration
protected override void CreateInternalList()
Overrides
CreateView()
Returns System.Linq.IQueryable with applied filtering, sorting, grouping and paging.
Declaration
protected override IQueryable CreateView()
Returns
System.Linq.IQueryable
|
Overrides
GetEffectiveItemCount()
Gets the count of items depending on the page and/or grouped state.
Declaration
protected override int GetEffectiveItemCount()
Returns
System.Int32
The count of items. |
Overrides
OnFilterDescriptorsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Invoked when the FilterDescriptors collection changes.
Declaration
protected override void OnFilterDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
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
System.Object
sender
Current instance of the QueryableCollectionView collection. |
ItemChangedEventArgs<IFilterDescriptor>
e
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 Telerik.Windows.Data.QueryableCollectionView.roupDescriptors collection changes.
Declaration
protected override void OnGroupDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
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
System.Object
sender
Current instance of the QueryableCollectionView collection. |
ItemChangedEventArgs<IGroupDescriptor>
e
Information about the change. |
Overrides
OnSortDescriptorsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Invoked when the SortDescriptors collection changes.
Declaration
protected override void OnSortDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System.Object
sender
Current instance of the QueryableCollectionView collection. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
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
System.Object
sender
Current instance of the QueryableCollectionView collection. |
ItemChangedEventArgs<ISortDescriptor>
e
Information about the change. |
Overrides
UpdateTotalItemCount()
Called when the count of all items should be updated.
Declaration
protected override void UpdateTotalItemCount()