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