New to Telerik UI for WPFStart a free 30-day trial

Represents a view for accessing and manipulating a DataServiceContext.

Definition

Namespace:Telerik.Windows.Controls.DataServices

Assembly:Telerik.Windows.Controls.DataServices.dll

Syntax:

C#
public abstract class QueryableDataServiceCollectionViewBase : QueryableCollectionView, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView, IQueryableCollectionView, IItemProperties, IDisposable, IEditableCollectionView, IEditableCollectionViewAddNewItem

Inheritance: objectQueryableCollectionViewQueryableDataServiceCollectionViewBase

Derived Classes: QueryableDataServiceCollectionView<TEntity>

Implements: ICollectionViewIDisposableIEditableCollectionViewIEditableCollectionViewAddNewItemIEnumerableIItemPropertiesINotifyCollectionChangedINotifyPropertyChangedIPagedCollectionViewIQueryableCollectionView...

Inherited Members 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.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.DeferRefresh()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.NeedsRefreshQueryableCollectionView.SourceCollectionQueryableCollectionView.QueryableSourceCollectionQueryableCollectionView.CanFilterQueryableCollectionView.CanGroupQueryableCollectionView.CanSortQueryableCollectionView.CultureQueryableCollectionView.GroupsQueryableCollectionView.IsEmptyQueryableCollectionView.SortDescriptorsQueryableCollectionView.FilterDescriptorsQueryableCollectionView.GroupDescriptorsQueryableCollectionView.ItemTypeQueryableCollectionView.InternalListQueryableCollectionView.IsGroupedQueryableCollectionView.ShouldInitializeGroupProxyQueryableCollectionView.CurrentPositionQueryableCollectionView.IsCurrentAfterLastQueryableCollectionView.IsCurrentBeforeFirstQueryableCollectionView.CurrentItemQueryableCollectionView.PendingCurrencyRefreshQueryableCollectionView.CanAddNewQueryableCollectionView.ShouldRespectIEditableObjectQueryableCollectionView.CanAddNewItemQueryableCollectionView.CurrentAddItemQueryableCollectionView.CanRemoveQueryableCollectionView.CanCancelEditQueryableCollectionView.CurrentEditItemQueryableCollectionView.IsAddingNewQueryableCollectionView.IsEditingItemQueryableCollectionView.NewItemPlaceholderPositionQueryableCollectionView.ItemPropertiesQueryableCollectionView.ItemPropertiesByPropertyNameQueryableCollectionView.FilterQueryableCollectionView.SortDescriptionsQueryableCollectionView.GroupDescriptionsQueryableCollectionView.IsPageChangingQueryableCollectionView.PageIndexQueryableCollectionView.PageSizeQueryableCollectionView.ShouldRefreshOrDeferOnPageSizeChangeQueryableCollectionView.IsPagedQueryableCollectionView.CountQueryableCollectionView.InternalCountQueryableCollectionView.TotalItemCountQueryableCollectionView.ItemCountQueryableCollectionView.GroupCollectionChangedQueryableCollectionView.CollectionChangedQueryableCollectionView.CurrentChangedQueryableCollectionView.CurrentChangingQueryableCollectionView.PropertyChangedQueryableCollectionView.PageChangedQueryableCollectionView.PageChanging...

Constructors

Initializes a new instance of the QueryableDataServiceCollectionViewBase class.

C#
protected QueryableDataServiceCollectionViewBase(DataServiceContext dataServiceContext, IEnumerable sourceCollection)
Parameters:dataServiceContextDataServiceContext

The data service context.

sourceCollectionIEnumerable

The source collection.

Properties

Gets or sets a value indicating whether Load is automatically invoked when a change occurs that impacts the query.

C#
public bool AutoLoad { get; set; }
Property Value:

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.

C#
public override bool CanChangePage { get; }

Overrides: QueryableCollectionView.CanChangePage

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

C#
public bool CanLoad { get; }
Property Value:

true if this instance can load; otherwise, false.

DataServiceContext

DataServiceContext

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

C#
public DataServiceContext DataServiceContext { get; }

Gets or sets the expand option.

C#
public string Expand { get; set; }
Property Value:

The expand option.

Remarks:

For more information, please visit .

Gets a value indicating whether this collection has changes.

C#
public bool HasChanges { get; protected set; }
Property Value:

true if this instance has changes; otherwise, false.

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

C#
public bool IsBusy { get; }
Property Value:

true if this collection is loading or submitting; otherwise, false.

Gets a value that indicates whether this collection is currently performing a Load operation.

C#
public override bool IsLoading { get; protected set; }
Property Value:

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

Overrides: QueryableCollectionView.IsLoading

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

C#
public bool IsSubmittingChanges { get; protected set; }
Property Value:

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

Methods

Cancels the current data loading operation, if any.

C#
public void CancelLoad()

Cancels the current submit operation if any.

C#
public void CancelSubmit()

Completes the page move.

C#
protected override void CompletePageMove(int newPageIndex)
Parameters:newPageIndexint

The index of the new page.

Overrides: QueryableCollectionView.CompletePageMove(int)

Initiates a Load operation if possible.

C#
public void Load()

Initiates a Load operation if possible.

C#
public void Load(bool forceLoad)
Parameters:forceLoadbool

true if load should be performed even if the new entity query is the same as the last successfully load one; otherwise, false.

Requests a page move to the page at the specified index.

C#
protected override bool MoveToPageCore(int index)
Parameters:indexint

The index of the page to move to.

Returns:

bool

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

Overrides: QueryableCollectionView.MoveToPageCore(int)

Raises the event.

C#
protected virtual void OnLoadedData(LoadedDataEventArgs args)
Parameters:argsLoadedDataEventArgs

The LoadedDataEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnLoadingData(LoadingDataEventArgs args)
Parameters:argsLoadingDataEventArgs

The LoadingDataEventArgs instance containing the event data.

Raises the PropertyChanged event.

C#
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

The PropertyChangedEventArgs instance containing the event data.

Overrides: QueryableCollectionView.OnPropertyChanged(PropertyChangedEventArgs)

Invoked when the instance should be refreshed.

C#
protected override void OnRefresh()

Overrides: QueryableCollectionView.OnRefresh()

Raises SubmittedChanges event.

C#
protected virtual void OnSubmittedChanges(DataServiceSubmittedChangesEventArgs submittedEventArgs)
Parameters:submittedEventArgsDataServiceSubmittedChangesEventArgs

The DataServiceSubmittedChangesEventArgs instance containing the event data.

Raises SubmittingChanges event.

C#
protected virtual void OnSubmittingChanges(DataServiceSubmittingChangesEventArgs args)
Parameters:argsDataServiceSubmittingChangesEventArgs

The DataServiceSubmittingChangesEventArgs instance containing the event data.

Rejects all changes.

C#
public void RejectChanges()

Initiates a Submit operation if possible.

C#
public void SubmitChanges()

Events

Occurs when a data loading operation is completed.

C#
public event EventHandler<LoadedDataEventArgs> LoadedData

Occurs when a data loading operation is started.

C#
public event EventHandler<LoadingDataEventArgs> LoadingData

Event raised whenever a submit operation is completed.

C#
public event EventHandler<DataServiceSubmittedChangesEventArgs> SubmittedChanges

Event raised whenever a submit operation is launched.

C#
public event EventHandler<DataServiceSubmittingChangesEventArgs> SubmittingChanges