Class RadItemOwnerCollection
A collection that stores RadItem objects and manages their ownership relationships with a parent RadElement.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class RadItemOwnerCollection : RadItemCollection, IList, ICollection, IEnumerable<RadItem>, IEnumerable
Remarks
This collection automatically synchronizes items with the owner's children collection, ensuring that items added to this collection are also properly parented to the owner element. It handles owner change scenarios and maintains consistency between the collection and element hierarchy.
Constructors
RadItemOwnerCollection()
Initializes a new instance of the RadItemOwnerCollection class.
Declaration
public RadItemOwnerCollection()
RadItemOwnerCollection(RadElement)
Initializes a new instance of the RadItemOwnerCollection class with the specified owner.
Declaration
public RadItemOwnerCollection(RadElement owner)
Parameters
RadElement
owner
The RadElement that will own items in this collection. |
RadItemOwnerCollection(RadItem[])
Initializes a new instance of the RadItemOwnerCollection class containing an array of RadItem objects.
Declaration
public RadItemOwnerCollection(RadItem[] value)
Parameters
RadItem[]
value
An array of RadItem objects with which to initialize the collection. |
RadItemOwnerCollection(RadItemOwnerCollection)
Initializes a new instance of the RadItemOwnerCollection class based on another collection.
Declaration
public RadItemOwnerCollection(RadItemOwnerCollection value)
Parameters
RadItemOwnerCollection
value
A RadItemOwnerCollection from which the contents are copied. |
Properties
Owner
Gets or sets the owner of the collection.
Declaration
public RadElement Owner { get; set; }
Property Value
RadElement
The RadElement that owns items in this collection. |
Remarks
When the owner changes, the collection automatically removes all items from the previous owner's children collection and adds them to the new owner's children collection to maintain consistency.
Methods
OnClear()
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnItemsChanged(RadItem, ItemsChangeOperation)
Declaration
protected override void OnItemsChanged(RadItem target, ItemsChangeOperation operation)
Parameters
RadItem
target
|
ItemsChangeOperation
operation
|
Overrides
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
System.Int32
index
|
System.Object
value
|
Overrides
OnSetComplete(Int32, Object, Object)
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
System.Int32
index
|
System.Object
oldValue
|
System.Object
newValue
|