Class
QueryableDataServiceCollectionViewBase

Represents a view for accessing and manipulating a DataServiceContext.

Definition

Namespace:Telerik.Windows.Controls.DataServices

Assembly:Telerik.Windows.Controls.DataServices.dll

Syntax:

cs-api-definition
public abstract class QueryableDataServiceCollectionViewBase : QueryableCollectionView, IEditableCollectionView, IEditableCollectionViewAddNewItem, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView, IQueryableCollectionView, IItemProperties, IDisposable

Inheritance: objectQueryableCollectionViewQueryableDataServiceCollectionViewBase

Derived Classes: QueryableDataServiceCollectionView<TEntity>

Implements: ICollectionViewIDisposableIEditableCollectionViewIEditableCollectionViewAddNewItemIEnumerableIItemPropertiesINotifyCollectionChangedINotifyPropertyChangedIPagedCollectionViewIQueryableCollectionView

Inherited Members QueryableCollectionView.AddNew()QueryableCollectionView.AddNewItem(object)QueryableCollectionView.AddNew(object)QueryableCollectionView.CommitNew()QueryableCollectionView.CancelNew()QueryableCollectionView.EditItem(object)QueryableCollectionView.CommitEdit()QueryableCollectionView.CancelEdit()QueryableCollectionView.Remove(object)QueryableCollectionView.RemoveAt(int)QueryableCollectionView.ConstructNewItem()QueryableCollectionView.RaisePageChanged()QueryableCollectionView.MoveToFirstPage()QueryableCollectionView.MoveToLastPage()QueryableCollectionView.MoveToNextPage()QueryableCollectionView.MoveToPage(int)QueryableCollectionView.MoveToPreviousPage()QueryableCollectionView.UpdateItemCount()QueryableCollectionView.GetEffectiveItemCount()QueryableCollectionView.GetPagingDeterminativeItemCount()QueryableCollectionView.InvalidatePagingDeterminativeItemCount()QueryableCollectionView.DeferRefresh()QueryableCollectionView.MoveCurrentTo(object)QueryableCollectionView.MoveCurrentToFirst()QueryableCollectionView.MoveCurrentToLast()QueryableCollectionView.MoveCurrentToNext()QueryableCollectionView.MoveCurrentToPosition(int)QueryableCollectionView.MoveCurrentToPrevious()QueryableCollectionView.OnCurrentChanged(EventArgs)QueryableCollectionView.OnCurrentChanging(CurrentChangingEventArgs)QueryableCollectionView.OnCurrentChanging()QueryableCollectionView.SetCurrentPosition(int)QueryableCollectionView.SetCurrent(object, int)QueryableCollectionView.InitializeCurrentItem()QueryableCollectionView.Contains(object)QueryableCollectionView.Refresh()QueryableCollectionView.GetEnumerator()QueryableCollectionView.InvalidatePagingAndRefresh()QueryableCollectionView.OnSortDescriptorsItemChanged(object, ItemChangedEventArgs<ISortDescriptor>)QueryableCollectionView.OnSortDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)QueryableCollectionView.OnGroupDescriptorsItemChanged(object, ItemChangedEventArgs<IGroupDescriptor>)QueryableCollectionView.OnGroupDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)QueryableCollectionView.OnFilterDescriptorsItemChanged(object, ItemChangedEventArgs<IFilterDescriptor>)QueryableCollectionView.OnFilterDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)QueryableCollectionView.OnFilterDescriptorsChanged()QueryableCollectionView.OnFilterDescriptorsLogicalOperatorChanged()QueryableCollectionView.CreateView()QueryableCollectionView.ApplySelectDescriptors(IQueryable)QueryableCollectionView.Sort(IQueryable)QueryableCollectionView.SetInternalList(IList)QueryableCollectionView.GetInternalList()QueryableCollectionView.InitializeInternalList(IQueryable)QueryableCollectionView.CreateInternalList()QueryableCollectionView.PopulateInternalList(IQueryable)QueryableCollectionView.OnInternalListCreated()QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs)QueryableCollectionView.RefreshOverrideCore()QueryableCollectionView.RefreshOverride()QueryableCollectionView.InitializeCurrencyOnRefresh(QueryableCollectionView.CurrencyRefreshInfo)QueryableCollectionView.RefreshGroupsOnItemAction(object, ItemAction)QueryableCollectionView.RefreshOnItemAction(object, ItemAction)QueryableCollectionView.RefreshOnItemActionWithoutPaging(object, ItemAction)QueryableCollectionView.OnPropertyChanged(string)QueryableCollectionView.UpdateTotalItemCount()QueryableCollectionView.IndexOf(object)QueryableCollectionView.GetItemAt(int)QueryableCollectionView.Dispose()QueryableCollectionView.Dispose(bool)QueryableCollectionView.CanAddNewQueryableCollectionView.ShouldRespectIEditableObjectQueryableCollectionView.CanAddNewItemQueryableCollectionView.CurrentAddItemQueryableCollectionView.CanRemoveQueryableCollectionView.CanCancelEditQueryableCollectionView.CurrentEditItemQueryableCollectionView.IsAddingNewQueryableCollectionView.IsEditingItemQueryableCollectionView.NewItemPlaceholderPositionQueryableCollectionView.IsPageChangingQueryableCollectionView.PageIndexQueryableCollectionView.PageSizeQueryableCollectionView.ShouldRefreshOrDeferOnPageSizeChangeQueryableCollectionView.IsPagedQueryableCollectionView.CountQueryableCollectionView.InternalCountQueryableCollectionView.TotalItemCountQueryableCollectionView.ItemCountQueryableCollectionView.CurrentPositionQueryableCollectionView.IsCurrentAfterLastQueryableCollectionView.IsCurrentBeforeFirstQueryableCollectionView.CurrentItemQueryableCollectionView.PendingCurrencyRefreshQueryableCollectionView.NeedsRefreshQueryableCollectionView.SourceCollectionQueryableCollectionView.QueryableSourceCollectionQueryableCollectionView.CanFilterQueryableCollectionView.CanGroupQueryableCollectionView.CanSortQueryableCollectionView.CultureQueryableCollectionView.GroupsQueryableCollectionView.IsEmptyQueryableCollectionView.SortDescriptorsQueryableCollectionView.FilterDescriptorsQueryableCollectionView.GroupDescriptorsQueryableCollectionView.ItemTypeQueryableCollectionView.InternalListQueryableCollectionView.IsGroupedQueryableCollectionView.ShouldInitializeGroupProxyQueryableCollectionView.FilterQueryableCollectionView.SortDescriptionsQueryableCollectionView.GroupDescriptionsQueryableCollectionView.ItemPropertiesQueryableCollectionView.ItemPropertiesByPropertyNameQueryableCollectionView.PageChangedQueryableCollectionView.PageChangingQueryableCollectionView.CollectionChangedQueryableCollectionView.CurrentChangedQueryableCollectionView.CurrentChangingQueryableCollectionView.PropertyChangedQueryableCollectionView.GroupCollectionChanged

Constructors

QueryableDataServiceCollectionViewBase(DataServiceContext, IEnumerable)

Initializes a new instance of the QueryableDataServiceCollectionViewBase class.

Declaration

cs-api-definition
protected QueryableDataServiceCollectionViewBase(DataServiceContext dataServiceContext, IEnumerable sourceCollection)

Parameters

dataServiceContext

DataServiceContext

The data service context.

sourceCollection

IEnumerable

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

cs-api-definition
public bool AutoLoad { get; set; }

Property Value

bool

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

cs-api-definition
public override bool CanChangePage { get; }

Property Value

bool

Overrides QueryableCollectionView.CanChangePage

CanLoad

Gets a value indicating whether a load operation could be performed based on the present state.

Declaration

cs-api-definition
public bool CanLoad { get; }

Property Value

bool

true if this instance can load; otherwise, false.

DataServiceContext

Gets or sets the DataServiceContext instance used for executing the load and submit operations.

Declaration

cs-api-definition
public DataServiceContext DataServiceContext { get; }

Property Value

DataServiceContext

Expand

Gets or sets the expand option.

Declaration

cs-api-definition
public string Expand { get; set; }

Property Value

string

The expand option.

Remarks

For more information, please visit .

HasChanges

Gets a value indicating whether this collection has changes.

Declaration

cs-api-definition
public bool HasChanges { get; protected set; }

Property Value

bool

true if this instance has changes; otherwise, false.

IsBusy

Gets a value indicating whether this collection is loading or submitting data.

Declaration

cs-api-definition
public bool IsBusy { get; }

Property Value

bool

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

cs-api-definition
public override bool IsLoading { get; protected set; }

Property Value

bool

true if the collection is currently performing a Load operation; otherwise, false.

Overrides QueryableCollectionView.IsLoading

IsSubmittingChanges

Gets a value indicating whether the collection is currently performing a Submit operation.

Declaration

cs-api-definition
public bool IsSubmittingChanges { get; protected set; }

Property Value

bool

true if the collection is currently performing a Submit operation; otherwise, false.

Methods

CancelLoad()

Cancels the current data loading operation, if any.

Declaration

cs-api-definition
public void CancelLoad()

CancelSubmit()

Cancels the current submit operation if any.

Declaration

cs-api-definition
public void CancelSubmit()

CompletePageMove(int)

Completes the page move.

Declaration

cs-api-definition
protected override void CompletePageMove(int newPageIndex)

Parameters

newPageIndex

int

The index of the new page.

Overrides QueryableCollectionView.CompletePageMove(int)

Load()

Initiates a Load operation if possible.

Declaration

cs-api-definition
public void Load()

Load(bool)

Initiates a Load operation if possible.

Declaration

cs-api-definition
public void Load(bool forceLoad)

Parameters

forceLoad

bool

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.

Declaration

cs-api-definition
protected override bool MoveToPageCore(int index)

Parameters

index

int

The index of the page to move to.

Returns

bool

true if the move was successfully initiated; otherwise, false.

Overrides QueryableCollectionView.MoveToPageCore(int)

OnLoadedData(LoadedDataEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnLoadedData(LoadedDataEventArgs args)

Parameters

args

LoadedDataEventArgs

The LoadedDataEventArgs instance containing the event data.

OnLoadingData(LoadingDataEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnLoadingData(LoadingDataEventArgs args)

Parameters

args

LoadingDataEventArgs

The LoadingDataEventArgs instance containing the event data.

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event.

Declaration

cs-api-definition
protected override void OnPropertyChanged(PropertyChangedEventArgs e)

Parameters

e

PropertyChangedEventArgs

The PropertyChangedEventArgs instance containing the event data.

Overrides QueryableCollectionView.OnPropertyChanged(PropertyChangedEventArgs)

OnRefresh()

Invoked when the instance should be refreshed.

Declaration

cs-api-definition
protected override void OnRefresh()

Overrides QueryableCollectionView.OnRefresh()

OnSubmittedChanges(DataServiceSubmittedChangesEventArgs)

Raises SubmittedChanges event.

Declaration

cs-api-definition
protected virtual void OnSubmittedChanges(DataServiceSubmittedChangesEventArgs submittedEventArgs)

Parameters

submittedEventArgs

DataServiceSubmittedChangesEventArgs

The DataServiceSubmittedChangesEventArgs instance containing the event data.

OnSubmittingChanges(DataServiceSubmittingChangesEventArgs)

Raises SubmittingChanges event.

Declaration

cs-api-definition
protected virtual void OnSubmittingChanges(DataServiceSubmittingChangesEventArgs args)

Parameters

args

DataServiceSubmittingChangesEventArgs

The DataServiceSubmittingChangesEventArgs instance containing the event data.

RejectChanges()

Rejects all changes.

Declaration

cs-api-definition
public void RejectChanges()

SubmitChanges()

Initiates a Submit operation if possible.

Declaration

cs-api-definition
public void SubmitChanges()

Events

LoadedData

Occurs when a data loading operation is completed.

Declaration

cs-api-definition
public event EventHandler<LoadedDataEventArgs> LoadedData

Event Value

EventHandler<LoadedDataEventArgs>

LoadingData

Occurs when a data loading operation is started.

Declaration

cs-api-definition
public event EventHandler<LoadingDataEventArgs> LoadingData

Event Value

EventHandler<LoadingDataEventArgs>

SubmittedChanges

Event raised whenever a submit operation is completed.

Declaration

cs-api-definition
public event EventHandler<DataServiceSubmittedChangesEventArgs> SubmittedChanges

Event Value

EventHandler<DataServiceSubmittedChangesEventArgs>

SubmittingChanges

Event raised whenever a submit operation is launched.

Declaration

cs-api-definition
public event EventHandler<DataServiceSubmittingChangesEventArgs> SubmittingChanges

Event Value

EventHandler<DataServiceSubmittingChangesEventArgs>