Represents a view for accessing and manipulating a DataServiceContext.
Definition
Namespace:Telerik.Windows.Controls.DataServices
Assembly:Telerik.Windows.Controls.DataServices.dll
Syntax:
public abstract class QueryableDataServiceCollectionViewBase : QueryableCollectionView, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView, IQueryableCollectionView, IItemProperties, IDisposable, IEditableCollectionView, IEditableCollectionViewAddNewItem
Inheritance: objectQueryableCollectionViewQueryableDataServiceCollectionViewBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the QueryableDataServiceCollectionViewBase class.
protected QueryableDataServiceCollectionViewBase(DataServiceContext dataServiceContext, IEnumerable sourceCollection)
The data service context.
sourceCollectionIEnumerableThe source collection.
Properties
Gets or sets a value indicating whether Load is automatically invoked when a change occurs that impacts the query.
public bool AutoLoad { get; set; }
true if Load will automatically be invoked when a change occurs
that impacts the query; otherwise, false.
Completes move to page operation. Raises PageChanged event and refreshes the data view.
public override bool CanChangePage { get; }
Overrides:
Gets a value indicating whether a load operation could be performed based on the present state.
public bool CanLoad { get; }
true if this instance can load; otherwise, false.
DataServiceContext
DataServiceContext
Gets or sets the DataServiceContext instance used for executing the load and submit operations.
public DataServiceContext DataServiceContext { get; }
Gets or sets the expand option.
public string Expand { get; set; }
The expand option.
For more information, please visit
Gets a value indicating whether this collection has changes.
public bool HasChanges { get; protected set; }
true if this instance has changes; otherwise, false.
Gets a value indicating whether this collection is loading or submitting data.
public bool IsBusy { get; }
true if this collection is loading or submitting; otherwise, false.
Gets a value that indicates whether this collection is currently performing a Load operation.
public override bool IsLoading { get; protected set; }
true if the collection is currently performing a Load operation; otherwise, false.
Overrides:
Gets a value indicating whether the collection is currently performing a Submit operation.
public bool IsSubmittingChanges { get; protected set; }
true if the collection is currently performing a Submit operation; otherwise, false.
Methods
Cancels the current data loading operation, if any.
public void CancelLoad()
Cancels the current submit operation if any.
public void CancelSubmit()
Completes the page move.
protected override void CompletePageMove(int newPageIndex)
The index of the new page.
Overrides:
Initiates a Load operation if possible.
public void Load()
Initiates a Load operation if possible.
public void Load(bool forceLoad)
true if load should be performed even if the new entity query is the same as the last successfully load one; otherwise, false.
Raises the event.
protected virtual void OnLoadedData(LoadedDataEventArgs args)
The LoadedDataEventArgs instance containing the event data.
Raises the event.
protected virtual void OnLoadingData(LoadingDataEventArgs args)
The LoadingDataEventArgs instance containing the event data.
Raises the PropertyChanged event.
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
The PropertyChangedEventArgs instance containing the event data.
Overrides:
Invoked when the instance should be refreshed.
protected override void OnRefresh()
Overrides:
Raises SubmittedChanges event.
protected virtual void OnSubmittedChanges(DataServiceSubmittedChangesEventArgs submittedEventArgs)
The DataServiceSubmittedChangesEventArgs instance containing the event data.
Raises SubmittingChanges event.
protected virtual void OnSubmittingChanges(DataServiceSubmittingChangesEventArgs args)
The DataServiceSubmittingChangesEventArgs instance containing the event data.
Rejects all changes.
public void RejectChanges()
Initiates a Submit operation if possible.
public void SubmitChanges()
Events
Occurs when a data loading operation is completed.
public event EventHandler<LoadedDataEventArgs> LoadedData
Occurs when a data loading operation is started.
public event EventHandler<LoadingDataEventArgs> LoadingData
Event raised whenever a submit operation is completed.
public event EventHandler<DataServiceSubmittedChangesEventArgs> SubmittedChanges
Event raised whenever a submit operation is launched.
public event EventHandler<DataServiceSubmittingChangesEventArgs> SubmittingChanges