Class
RadItemVirtualizationCollection

A specialized collection for RadItem objects that supports virtualization for performance optimization in large datasets.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class RadItemVirtualizationCollection : RadItemCollection, IList, ICollection, IEnumerable, IVirtualizationCollection

Inheritance: objectCollectionBaseRadItemCollectionRadItemVirtualizationCollection

Implements: ICollectionIEnumerableIListIVirtualizationCollection

Inherited Members RadItemCollection.OnItemsChanged(RadItem, ItemsChangeOperation)RadItemCollection.OnValidate(object)RadItemCollection.SuspendNotifications()RadItemCollection.ResumeNotifications()RadItemCollection.GetEnumerator()RadItemCollection.OnRemove(int, object)RadItemCollection.OnSet(int, object, object)RadItemCollection.Add(RadItem)RadItemCollection.AddRange(params RadItem[])RadItemCollection.AddRange(RadItemCollection)RadItemCollection.Insert(int, RadItem)RadItemCollection.Remove(RadItem)RadItemCollection.Sort()RadItemCollection.Sort(IComparer)RadItemCollection.Sort(int, int, IComparer)RadItemCollection.Contains(RadItem)RadItemCollection.IndexOf(RadItem)RadItemCollection.CopyTo(RadItem[], int)RadItemCollection.ToArray()RadItemCollection.ItemTypesRadItemCollection.ExcludedTypesRadItemCollection.SealedTypesRadItemCollection.DefaultTypeRadItemCollection.this[int]RadItemCollection.FirstRadItemCollection.LastRadItemCollection.this[string]RadItemCollection.ItemsChangedCollectionBase.Clear()CollectionBase.RemoveAt(int)CollectionBase.OnInsert(int, object)CollectionBase.InnerListCollectionBase.ListCollectionBase.CapacityCollectionBase.Count

Constructors

RadItemVirtualizationCollection()

Initializes a new instance of the RadItemVirtualizationCollection class.

Declaration

cs-api-definition
public RadItemVirtualizationCollection()

RadItemVirtualizationCollection(IVirtualViewport)

Initializes a new instance of the RadItemVirtualizationCollection class with the specified viewport.

Declaration

cs-api-definition
public RadItemVirtualizationCollection(IVirtualViewport ownerViewport)

Parameters

ownerViewport

IVirtualViewport

The virtual viewport that will manage virtualization for this collection.

Properties

OwnerViewport

Gets or sets the virtual viewport that manages the virtualization behavior for this collection.

Declaration

cs-api-definition
[Browsable(false)]
public IVirtualViewport OwnerViewport { get; set; }

Property Value

IVirtualViewport

The IVirtualViewport instance that handles virtualization operations.

Remarks

The viewport is responsible for determining which items are visible and need to be realized, and manages the virtualization lifecycle for performance optimization.

Methods

GetVirtualData(int)

Gets the virtual data at the specified index.

Declaration

cs-api-definition
public object GetVirtualData(int index)

Parameters

index

int

The zero-based index of the data to retrieve.

Returns

object

The data at the specified index, or null if the index is out of range.

Implements IVirtualizationCollection.GetVirtualData(int)

IndexOf(object)

Determines the index of a specific data item in the collection.

Declaration

cs-api-definition
public int IndexOf(object data)

Parameters

data

object

The data item to locate in the collection.

Returns

int

The zero-based index of the item if found; otherwise, -1.

Implements IVirtualizationCollection.IndexOf(object)

OnClear()

Declaration

cs-api-definition
protected override void OnClear()

Overrides RadItemCollection.OnClear()

OnClearComplete()

Declaration

cs-api-definition
protected override void OnClearComplete()

Overrides RadItemCollection.OnClearComplete()

OnInsertComplete(int, object)

Declaration

cs-api-definition
protected override void OnInsertComplete(int index, object value)

Parameters

index

int

value

object

Overrides RadItemCollection.OnInsertComplete(int, object)

OnRemoveComplete(int, object)

Declaration

cs-api-definition
protected override void OnRemoveComplete(int index, object value)

Parameters

index

int

value

object

Overrides RadItemCollection.OnRemoveComplete(int, object)

OnSetComplete(int, object, object)

Declaration

cs-api-definition
protected override void OnSetComplete(int index, object oldValue, object newValue)

Parameters

index

int

oldValue

object

newValue

object

Overrides RadItemCollection.OnSetComplete(int, object, object)

OnSort()

Declaration

cs-api-definition
protected override void OnSort()

Overrides RadItemCollection.OnSort()

OnSortComplete()

Declaration

cs-api-definition
protected override void OnSortComplete()

Overrides RadItemCollection.OnSortComplete()