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

Represents a view for grouping, sorting, filtering and paging data collection virtually.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public class VirtualQueryableCollectionView : QueryableCollectionView, ICollectionView, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView, IQueryableCollectionView, IItemProperties, IDisposable, IEditableCollectionView, IEditableCollectionViewAddNewItem, IList, ICollection, IEnumerable

Inheritance: objectQueryableCollectionViewVirtualQueryableCollectionView

Derived Classes: VirtualQueryableCollectionView<T>

Implements: ICollectionICollectionViewIDisposableIEditableCollectionViewIEditableCollectionViewAddNewItemIEnumerableIItemPropertiesIListINotifyCollectionChangedINotifyPropertyChangedIPagedCollectionViewIQueryableCollectionView...

Inherited Members QueryableCollectionView.InitializeCurrentItem()QueryableCollectionView.Contains(object)QueryableCollectionView.Refresh()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.ApplySelectDescriptors(IQueryable)QueryableCollectionView.Sort(IQueryable)QueryableCollectionView.SetInternalList(IList)QueryableCollectionView.GetInternalList()QueryableCollectionView.InitializeInternalList(IQueryable)QueryableCollectionView.CreateInternalList()QueryableCollectionView.PopulateInternalList(IQueryable)QueryableCollectionView.OnInternalListCreated()QueryableCollectionView.OnPropertyChanged(PropertyChangedEventArgs)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.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.AddNewItem(object)QueryableCollectionView.AddNew(object)QueryableCollectionView.CommitNew()QueryableCollectionView.EditItem(object)QueryableCollectionView.CommitEdit()QueryableCollectionView.CancelEdit()QueryableCollectionView.ConstructNewItem()QueryableCollectionView.RaisePageChanged()QueryableCollectionView.CompletePageMove(int)QueryableCollectionView.MoveToFirstPage()QueryableCollectionView.MoveToLastPage()QueryableCollectionView.MoveToNextPage()QueryableCollectionView.MoveToPage(int)QueryableCollectionView.MoveToPageCore(int)QueryableCollectionView.MoveToPreviousPage()QueryableCollectionView.UpdateItemCount()QueryableCollectionView.GetEffectiveItemCount()QueryableCollectionView.GetPagingDeterminativeItemCount()QueryableCollectionView.InvalidatePagingDeterminativeItemCount()QueryableCollectionView.NeedsRefreshQueryableCollectionView.SourceCollectionQueryableCollectionView.CanFilterQueryableCollectionView.CanGroupQueryableCollectionView.CanSortQueryableCollectionView.CultureQueryableCollectionView.GroupsQueryableCollectionView.IsEmptyQueryableCollectionView.SortDescriptorsQueryableCollectionView.FilterDescriptorsQueryableCollectionView.GroupDescriptorsQueryableCollectionView.ItemTypeQueryableCollectionView.IsLoadingQueryableCollectionView.IsGroupedQueryableCollectionView.ShouldInitializeGroupProxyQueryableCollectionView.CurrentPositionQueryableCollectionView.IsCurrentAfterLastQueryableCollectionView.IsCurrentBeforeFirstQueryableCollectionView.CurrentItemQueryableCollectionView.PendingCurrencyRefreshQueryableCollectionView.ShouldRespectIEditableObjectQueryableCollectionView.CanAddNewItemQueryableCollectionView.CurrentAddItemQueryableCollectionView.CanCancelEditQueryableCollectionView.CurrentEditItemQueryableCollectionView.IsAddingNewQueryableCollectionView.IsEditingItemQueryableCollectionView.NewItemPlaceholderPositionQueryableCollectionView.ItemPropertiesQueryableCollectionView.ItemPropertiesByPropertyNameQueryableCollectionView.FilterQueryableCollectionView.SortDescriptionsQueryableCollectionView.GroupDescriptionsQueryableCollectionView.CanChangePageQueryableCollectionView.IsPageChangingQueryableCollectionView.PageIndexQueryableCollectionView.PageSizeQueryableCollectionView.ShouldRefreshOrDeferOnPageSizeChangeQueryableCollectionView.IsPagedQueryableCollectionView.CountQueryableCollectionView.TotalItemCountQueryableCollectionView.GroupCollectionChangedQueryableCollectionView.CollectionChangedQueryableCollectionView.CurrentChangedQueryableCollectionView.CurrentChangingQueryableCollectionView.PropertyChangedQueryableCollectionView.PageChangedQueryableCollectionView.PageChanging...

Constructors

Initializes a new instance of the VirtualQueryableCollectionView class.

C#
public VirtualQueryableCollectionView()

Initializes a new instance of the VirtualQueryableCollectionView class.

C#
public VirtualQueryableCollectionView(IEnumerable source, Type itemType)
Parameters:sourceIEnumerableitemTypeType

Initializes a new instance of the VirtualQueryableCollectionView class.

C#
public VirtualQueryableCollectionView(IEnumerable source)
Parameters:sourceIEnumerable

The source collection.

Properties

Gets a value that indicates whether a new item can be added to the collection.

C#
public override bool CanAddNew { get; }
Property Value:

true if SourceCollection is not IsFixedSize or Add method is available and collection element has a default constructor; otherwise, false.

Overrides: QueryableCollectionView.CanAddNew

Gets a value that indicates whether an item can be removed from the collection.

C#
public override bool CanRemove { get; }
Property Value:

true if an item can be removed from the collection; otherwise, false.

Overrides: QueryableCollectionView.CanRemove

Protected accessor to private count.

C#
protected override int InternalCount { get; }

Overrides: QueryableCollectionView.InternalCount

Gets the list created from resulting query after applying filtering, sorting, grouping and paging.

C#
protected override IList InternalList { get; }
Property Value:

The internal list for the current view.

Overrides: QueryableCollectionView.InternalList

C#
public bool IsFixedSize { get; }

Implements: IList.IsFixedSize

C#
public bool IsReadOnly { get; }

Implements: IList.IsReadOnly

Gets a value that indicates whether this view is loading items.

C#
public virtual bool IsRequestingItems { get; protected set; }
C#
public bool IsSynchronized { get; }

Implements: ICollection.IsSynchronized

Gets the minimum number of items known to be in the source collection.

C#
public override int ItemCount { get; }
Property Value:

The minimum number of items known to be in the source collection.

Overrides: QueryableCollectionView.ItemCount

Gets or sets the total number of items to retrieve.

C#
public int LoadSize { get; set; }
Property Value:

The total number of items to retrieve.

Returns the queryable collection, constructed from SourceCollection.

C#
public override IQueryable QueryableSourceCollection { get; }
Property Value:

An IQueryable object that is constructed from the underlying collection.

Overrides: QueryableCollectionView.QueryableSourceCollection

Gets or sets a value that indicates whether items that are not loaded yet should get loaded while the collection's enumerator is traversed.

C#
public bool ShouldEnumeratorLoadItems { get; set; }
C#
public object SyncRoot { get; }

Implements: ICollection.SyncRoot

Gets or sets the total number of all items.

C#
public int VirtualItemCount { get; set; }
Property Value:

The total number of all items.

Methods

C#
public int Add(object value)
Parameters:valueobjectReturns:

int

Implements: IList.Add(object)

Adds a new item to the collection.

C#
public override object AddNew()
Returns:

object

The new item that is added to the collection.

Exceptions:

InvalidOperationException

CanAddNew is false.

Overrides: QueryableCollectionView.AddNew()

Ends the add transaction and discards the pending new item.

C#
public override void CancelNew()

Overrides: QueryableCollectionView.CancelNew()

C#
public void Clear()

Implements: IList.Clear()

C#
public void CopyTo(Array array, int index)
Parameters:arrayArrayindexint

Implements: ICollection.CopyTo(Array, int)

Returns IQueryable with applied filtering, sorting, grouping and paging.

C#
protected override IQueryable CreateView()
Returns:

IQueryable

Overrides: QueryableCollectionView.CreateView()

C#
public override IEnumerator GetEnumerator()
Returns:

IEnumerator

Overrides: QueryableCollectionView.GetEnumerator()

Implements: IEnumerable.GetEnumerator()

Retrieves the item at the specified zero-based index in the view.

C#
public override object GetItemAt(int index)
Parameters:indexint

The zero-based index of the item to retrieve.

Returns:

object

The item at the specified zero-based index in the view.

Exceptions:

ArgumentOutOfRangeException

index is less than 0 or greater than ItemCount.

Overrides: QueryableCollectionView.GetItemAt(int)

Remarks:

If the item at this index is not loaded will raise ItemsLoading event. The returned item will be null or temporary dynamic item until the real item is loaded.

Returns the zero-based index at which the specified item is located.

C#
public override int IndexOf(object item)
Parameters:itemobject

The item to locate.

Returns:

int

The index at which the specified item is located, or �1 if the item is unknown.

Overrides: QueryableCollectionView.IndexOf(object)

Implements: IList.IndexOf(object)

C#
public void Insert(int index, object value)
Parameters:indexintvalueobject

Implements: IList.Insert(int, object)

Invalidates the paging and refreshes the view.

C#
protected override void InvalidatePagingAndRefresh()

Overrides: QueryableCollectionView.InvalidatePagingAndRefresh()

Loads new data in the view.

C#
public void Load(int startIndex, IEnumerable items)
Parameters:startIndexintitemsIEnumerable

Raises the CollectionChanged event.

C#
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters:argsNotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Overrides: QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs)

Invoked when the instance should be refreshed.

C#
protected override void OnRefresh()

Overrides: QueryableCollectionView.OnRefresh()

Removes the specified item from the collection.

C#
public override void Remove(object item)
Parameters:itemobject

The item to remove.

Overrides: QueryableCollectionView.Remove(object)

Implements: IList.Remove(object)

Removes the item at the specified position from the collection.

C#
public override void RemoveAt(int index)
Parameters:indexint

The position of the item to remove.

Overrides: QueryableCollectionView.RemoveAt(int)

Implements: IList.RemoveAt(int)

Reset all items to default value (null) in the collection.

C#
public void ResetItems()

Reset number of items starting from given index to default value (null) in the collection.

C#
public void ResetItems(int startIndex, int count)
Parameters:startIndexintcountint

Events

Occurs when the items are loaded.

C#
public event EventHandler<VirtualQueryableCollectionViewItemsLoadedEventArgs> ItemsLoaded

Occurs when the collection is about to load items.

C#
public event EventHandler<VirtualQueryableCollectionViewItemsLoadingEventArgs> ItemsLoading