Class
HierarchicalCollectionViewBase

Serves as a base class to all hierarchical views.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

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

Inheritance: objectQueryableCollectionViewHierarchicalCollectionViewBase

Derived Classes: HierarchicalChildCollectionViewHierarchicalCollectionView

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.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.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.OnRefresh()QueryableCollectionView.GetEnumerator()QueryableCollectionView.InvalidatePagingAndRefresh()QueryableCollectionView.OnSortDescriptorsItemChanged(object, ItemChangedEventArgs<ISortDescriptor>)QueryableCollectionView.OnGroupDescriptorsItemChanged(object, ItemChangedEventArgs<IGroupDescriptor>)QueryableCollectionView.OnGroupDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)QueryableCollectionView.OnFilterDescriptorsLogicalOperatorChanged()QueryableCollectionView.ApplySelectDescriptors(IQueryable)QueryableCollectionView.Sort(IQueryable)QueryableCollectionView.SetInternalList(IList)QueryableCollectionView.GetInternalList()QueryableCollectionView.OnInternalListCreated()QueryableCollectionView.OnPropertyChanged(PropertyChangedEventArgs)QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs)QueryableCollectionView.RefreshOverrideCore()QueryableCollectionView.InitializeCurrencyOnRefresh(QueryableCollectionView.CurrencyRefreshInfo)QueryableCollectionView.RefreshGroupsOnItemAction(object, ItemAction)QueryableCollectionView.RefreshOnItemActionWithoutPaging(object, ItemAction)QueryableCollectionView.OnPropertyChanged(string)QueryableCollectionView.UpdateTotalItemCount()QueryableCollectionView.IndexOf(object)QueryableCollectionView.Dispose()QueryableCollectionView.Dispose(bool)QueryableCollectionView.CanAddNewQueryableCollectionView.ShouldRespectIEditableObjectQueryableCollectionView.CanAddNewItemQueryableCollectionView.CurrentAddItemQueryableCollectionView.CanRemoveQueryableCollectionView.CanCancelEditQueryableCollectionView.CurrentEditItemQueryableCollectionView.IsAddingNewQueryableCollectionView.IsEditingItemQueryableCollectionView.NewItemPlaceholderPositionQueryableCollectionView.CanChangePageQueryableCollectionView.IsPageChangingQueryableCollectionView.PageIndexQueryableCollectionView.PageSizeQueryableCollectionView.ShouldRefreshOrDeferOnPageSizeChangeQueryableCollectionView.IsPagedQueryableCollectionView.CountQueryableCollectionView.TotalItemCountQueryableCollectionView.ItemCountQueryableCollectionView.CurrentPositionQueryableCollectionView.IsCurrentAfterLastQueryableCollectionView.IsCurrentBeforeFirstQueryableCollectionView.CurrentItemQueryableCollectionView.PendingCurrencyRefreshQueryableCollectionView.NeedsRefreshQueryableCollectionView.SourceCollectionQueryableCollectionView.QueryableSourceCollectionQueryableCollectionView.CanFilterQueryableCollectionView.CanGroupQueryableCollectionView.CanSortQueryableCollectionView.CultureQueryableCollectionView.GroupsQueryableCollectionView.IsEmptyQueryableCollectionView.SortDescriptorsQueryableCollectionView.FilterDescriptorsQueryableCollectionView.GroupDescriptorsQueryableCollectionView.ItemTypeQueryableCollectionView.InternalListQueryableCollectionView.IsLoadingQueryableCollectionView.FilterQueryableCollectionView.SortDescriptionsQueryableCollectionView.GroupDescriptionsQueryableCollectionView.ItemPropertiesQueryableCollectionView.ItemPropertiesByPropertyNameQueryableCollectionView.PageChangedQueryableCollectionView.PageChangingQueryableCollectionView.CollectionChangedQueryableCollectionView.CurrentChangedQueryableCollectionView.CurrentChangingQueryableCollectionView.PropertyChangedQueryableCollectionView.GroupCollectionChanged

Properties

HierarchyDescriptors

Gets the hierarchy descriptors used for hierarchy construction. If this view is a child one, its root view hierarchy descriptors are returned.

Declaration

cs-api-definition
public abstract HierarchyDescriptorCollection HierarchyDescriptors { get; }

Property Value

HierarchyDescriptorCollection

The hierarchy descriptors.

InternalCount

Protected accessor to private count.

Declaration

cs-api-definition
protected override int InternalCount { get; }

Property Value

int

Overrides QueryableCollectionView.InternalCount

IsGrouped

Gets a value indicating whether this instance is grouped.

Declaration

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

Property Value

bool

true if this instance is grouped; otherwise, false.

Overrides QueryableCollectionView.IsGrouped

Remarks

Returns false. Grouping is not supported.

ShouldInitializeGroupProxy

Gets a value indicating whether should initialize group proxy.

Declaration

cs-api-definition
protected override bool ShouldInitializeGroupProxy { get; }

Property Value

bool

true if should initialize group proxy; otherwise, false.

Overrides QueryableCollectionView.ShouldInitializeGroupProxy

Remarks

Always false for HierarchicalCollectionViewBase.

Methods

CreateInternalList()

Called when internal list needs to be created.

Declaration

cs-api-definition
protected override void CreateInternalList()

Overrides QueryableCollectionView.CreateInternalList()

CreateView()

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

Declaration

cs-api-definition
protected override IQueryable CreateView()

Returns

IQueryable

Overrides QueryableCollectionView.CreateView()

Remarks

Overrides the CreateView method and returns a IQueryable view specific to the hierarchy collection view.

GetItemAt(int)

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

Declaration

cs-api-definition
public override object GetItemAt(int index)

Parameters

index

int

Returns

object

Overrides QueryableCollectionView.GetItemAt(int)

InitializeInternalList(IQueryable)

Called when internal list should be initialized.

Declaration

cs-api-definition
protected override void InitializeInternalList(IQueryable view)

Parameters

view

IQueryable

Overrides QueryableCollectionView.InitializeInternalList(IQueryable)

OnFilterDescriptorsChanged()

Called when anything in the filter descriptors changes.

Declaration

cs-api-definition
protected override void OnFilterDescriptorsChanged()

Overrides QueryableCollectionView.OnFilterDescriptorsChanged()

OnFilterDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)

Invoked when the FilterDescriptors collection changes.

Declaration

cs-api-definition
protected override void OnFilterDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)

Parameters

sender

object

Current instance of the QueryableCollectionView collection.

e

NotifyCollectionChangedEventArgs

Information about the change.

Overrides QueryableCollectionView.OnFilterDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)

OnFilterDescriptorsItemChanged(object, ItemChangedEventArgs<IFilterDescriptor>)

Invoked when the FilterDescriptors item changes.

Declaration

cs-api-definition
protected override void OnFilterDescriptorsItemChanged(object sender, ItemChangedEventArgs<IFilterDescriptor> e)

Parameters

sender

object

Current instance of the QueryableCollectionView collection.

e

ItemChangedEventArgs<IFilterDescriptor>

Information about the change.

Overrides QueryableCollectionView.OnFilterDescriptorsItemChanged(object, ItemChangedEventArgs<IFilterDescriptor>)

OnSortDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)

Invoked when the SortDescriptors collection changes.

Declaration

cs-api-definition
protected override void OnSortDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)

Parameters

sender

object

Current instance of the QueryableCollectionView collection.

e

NotifyCollectionChangedEventArgs

Information about the change.

Overrides QueryableCollectionView.OnSortDescriptorsCollectionChanged(object, NotifyCollectionChangedEventArgs)

PopulateInternalList(IQueryable)

Called when internal list should be populated.

Declaration

cs-api-definition
protected override void PopulateInternalList(IQueryable view)

Parameters

view

IQueryable

Overrides QueryableCollectionView.PopulateInternalList(IQueryable)

RefreshOnItemAction(object, ItemAction)

Refreshes the view according to the item and the respective action.

Declaration

cs-api-definition
protected override void RefreshOnItemAction(object item, ItemAction action)

Parameters

item

object

The item.

action

ItemAction

The action.

Overrides QueryableCollectionView.RefreshOnItemAction(object, ItemAction)

RefreshOverride()

Re-create the view over the associated IList.

Declaration

cs-api-definition
protected override void RefreshOverride()

Overrides QueryableCollectionView.RefreshOverride()