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, IEditableCollectionView, IEditableCollectionViewAddNewItem, 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
Microsoft. The DataServiceContext. |
Microsoft. 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
Microsoft. The data service query. |
Methods
CreateInternalList()
Called when internal list needs to be created.
Declaration
protected override void CreateInternalList()
Overrides
CreateView()
Returns System.
Declaration
protected override IQueryable CreateView()
Returns
System.
|
Overrides
GetEffectiveItemCount()
Gets the count of items depending on the page and/or grouped state.
Declaration
protected override int GetEffectiveItemCount()
Returns
System. The count of items. |
Overrides
OnFilterDescriptorsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Invoked when the Filter
Declaration
protected override void OnFilterDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System. Current instance of the QueryableCollectionView collection. |
System. Information about the change. |
Overrides
OnFilterDescriptorsItemChanged(Object, ItemChangedEventArgs<IFilterDescriptor>)
Invoked when the Filter
Declaration
protected override void OnFilterDescriptorsItemChanged(object sender, ItemChangedEventArgs<IFilterDescriptor> e)
Parameters
System. Current instance of the QueryableCollectionView collection. |
Item Information about the change. |
Overrides
OnFilterDescriptorsLogicalOperatorChanged()
Invoked when the Filter
Declaration
protected override void OnFilterDescriptorsLogicalOperatorChanged()
Overrides
OnGroupDescriptorsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Invoked when the Telerik.
Declaration
protected override void OnGroupDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System. Current instance of the QueryableCollectionView collection. |
System. Information about the change. |
Overrides
OnGroupDescriptorsItemChanged(Object, ItemChangedEventArgs<IGroupDescriptor>)
Invoked when the Group
Declaration
protected override void OnGroupDescriptorsItemChanged(object sender, ItemChangedEventArgs<IGroupDescriptor> e)
Parameters
System. Current instance of the QueryableCollectionView collection. |
Item Information about the change. |
Overrides
OnSortDescriptorsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Invoked when the Sort
Declaration
protected override void OnSortDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System. Current instance of the QueryableCollectionView collection. |
System. Information about the change. |
Overrides
OnSortDescriptorsItemChanged(Object, ItemChangedEventArgs<ISortDescriptor>)
Invoked when the Sort
Declaration
protected override void OnSortDescriptorsItemChanged(object sender, ItemChangedEventArgs<ISortDescriptor> e)
Parameters
System. Current instance of the QueryableCollectionView collection. |
Item Information about the change. |
Overrides
UpdateTotalItemCount()
Called when the count of all items should be updated.
Declaration
protected override void UpdateTotalItemCount()