Represents the strongly-typed collection of MultiSelectItem elements used by RadMultiSelect. Provides helper search APIs (FindChildByText / FindChildByValue / FindChildByAttribute) and maintains the Owner reference when items are added or moved between different controls.
Key behaviors:
- Setting the Owner on add: ensures item level runtime evaluation (templates / client serialization) can access parent control.
- Moving items between controls: SetOwner(MultiSelectItem) removes the item from a previous owner's Items collection to prevent duplicates.
- Search helpers perform linear scans; for large sets consider caching or projecting into dictionaries externally.
- Implements IList<T> members explicitly where mutation control or custom logic is required.
Common search phrases: "RadMultiSelect find item by value", "get selected item object", "update multiselect item text server side".
Definition
Namespace:Telerik.Web.UI.MultiSelect
Assembly:Telerik.Web.UI.dll
Syntax:
public class MultiSelectItemCollection : BaseCollection<MultiSelectItem>, IList, ICollection, IStateManager, IList<MultiSelectItem>, ICollection<MultiSelectItem>, IEnumerable<MultiSelectItem>, IEnumerable
Inheritance: objectStateManagedCollectionBaseCollection<MultiSelectItem>MultiSelectItemCollection
Implements:
Inherited Members
Constructors
public MultiSelectItemCollection()
Methods
Adds a single item to the collection and assigns the Owner (if present).
public override void Add(MultiSelectItem item)
Item to add.
Overrides:
Implements:
Adds multiple items, invoking Add(MultiSelectItem) per element so ownership is applied consistently.
public override void AddRange(IEnumerable<MultiSelectItem> items)
Sequence of items to add.
Overrides:
Returns the first item matching the provided predicate or null if none match.
public MultiSelectItem FindChild(Predicate<MultiSelectItem> match)
Predicate used to test each item.
Returns: Exceptions: ArgumentNullExceptionThrown when match is null.
Finds first item with matching Text (case-sensitive).
Finds first item with matching Value (case-sensitive).
Removes the MultiSelectItem object at the specified index from the current MultiSelectItemCollection.
Ensures the supplied item references the current collection's owner and is detached from any previous owner collection.