New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents the strongly typed collection of MultiColumnComboBoxItem objects used by RadMultiColumnComboBox. Provides helper lookup methods (by text, value and attribute) and implements IList<T> to support standard collection semantics.

Definition

Namespace:Telerik.Web.UI.MultiColumnComboBox

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class MultiColumnComboBoxItemCollection : BaseCollection<MultiColumnComboBoxItem>, IList, ICollection, IStateManager, IList<MultiColumnComboBoxItem>, ICollection<MultiColumnComboBoxItem>, IEnumerable<MultiColumnComboBoxItem>, IEnumerable

Inheritance: objectStateManagedCollectionBaseCollection<MultiColumnComboBoxItem>MultiColumnComboBoxItemCollection

Implements: ICollectionICollection<MultiColumnComboBoxItem>IEnumerableIEnumerable<MultiColumnComboBoxItem>IListIList<MultiColumnComboBoxItem>IStateManager...

Inherited Members BaseCollection<MultiColumnComboBoxItem>.GetEnumerator()BaseCollection<MultiColumnComboBoxItem>.SetDirtyObject(object)BaseCollection<MultiColumnComboBoxItem>.Remove(MultiColumnComboBoxItem)BaseCollection<MultiColumnComboBoxItem>.Insert(int, MultiColumnComboBoxItem)BaseCollection<MultiColumnComboBoxItem>.Contains(MultiColumnComboBoxItem)BaseCollection<MultiColumnComboBoxItem>.IndexOf(MultiColumnComboBoxItem)BaseCollection<MultiColumnComboBoxItem>.this[int]BaseCollection<MultiColumnComboBoxItem>.OwnerStateManagedCollection.Clear()StateManagedCollection.CopyTo(Array, int)StateManagedCollection.CreateKnownType(int)StateManagedCollection.GetKnownTypes()StateManagedCollection.OnClear()StateManagedCollection.OnClearComplete()StateManagedCollection.OnValidate(object)StateManagedCollection.OnInsert(int, object)StateManagedCollection.OnInsertComplete(int, object)StateManagedCollection.OnRemove(int, object)StateManagedCollection.OnRemoveComplete(int, object)StateManagedCollection.SetDirty()StateManagedCollection.Countobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public MultiColumnComboBoxItemCollection()

Initializes a new instance of the collection and associates it with the specified owner control.

C#
public MultiColumnComboBoxItemCollection(RadMultiColumnComboBox owner)
Parameters:ownerRadMultiColumnComboBox

The owning RadMultiColumnComboBox.

Methods

Adds a single item to the collection and assigns the Owner if available.

C#
public override void Add(MultiColumnComboBoxItem item)
Parameters:itemMultiColumnComboBoxItem

The item to add.

Overrides: BaseCollection<MultiColumnComboBoxItem>.Add(MultiColumnComboBoxItem)

Implements: ICollection<MultiColumnComboBoxItem>.Add(MultiColumnComboBoxItem)

Adds the items from the specified sequence to the collection. Each item is processed through Add(MultiColumnComboBoxItem) to ensure proper ownership.

C#
public override void AddRange(IEnumerable<MultiColumnComboBoxItem> items)
Parameters:itemsIEnumerable<MultiColumnComboBoxItem>

Items to add.

Overrides: BaseCollection<MultiColumnComboBoxItem>.AddRange(IEnumerable<MultiColumnComboBoxItem>)

Finds the first child item that matches the supplied predicate.

C#
public MultiColumnComboBoxItem FindChild(Predicate<MultiColumnComboBoxItem> match)
Parameters:matchPredicate<MultiColumnComboBoxItem>

Predicate used for evaluation (must not be null).

Returns:

MultiColumnComboBoxItem

The first matching item; otherwise null.

Exceptions: ArgumentNullException

Thrown if match is null.

Finds a child item by a custom attribute key/value pair.

C#
public MultiColumnComboBoxItem FindChildByAttribute(string attributeName, string attributeValue)
Parameters:attributeNamestring

The attribute name.

attributeValuestring

The expected attribute value.

Returns:

MultiColumnComboBoxItem

The first matching item; otherwise null.

Finds a child item by its Text with optional case-insensitive comparison.

C#
public MultiColumnComboBoxItem FindChildByText(string text, bool ignoreCase)
Parameters:textstring

The text to match.

ignoreCasebool

True for case-insensitive comparison.

Returns:

MultiColumnComboBoxItem

The first matching item; otherwise null.

Finds a child item by its Text (case-sensitive).

C#
public MultiColumnComboBoxItem FindChildByText(string text)
Parameters:textstring

The text to match.

Returns:

MultiColumnComboBoxItem

The first matching item; otherwise null.

Finds a child item by its Value with optional case-insensitive comparison.

C#
public MultiColumnComboBoxItem FindChildByValue(string value, bool ignoreCase)
Parameters:valuestring

The value to match.

ignoreCasebool

True for case-insensitive comparison.

Returns:

MultiColumnComboBoxItem

The first matching item; otherwise null.

Finds a child item by its Value (case-sensitive).

C#
public MultiColumnComboBoxItem FindChildByValue(string value)
Parameters:valuestring

The value to match.

Returns:

MultiColumnComboBoxItem

The first matching item; otherwise null.

Removes the MultiColumnComboBoxItem object at the specified index from the current MultiColumnComboBoxItemCollection.

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

The zero-based index of the item to remove.

C#
protected void SetOwner(MultiColumnComboBoxItem item)
Parameters:itemMultiColumnComboBoxItem
C#
protected virtual IList<MultiColumnComboBoxItem> ToList()
Returns:

IList<MultiColumnComboBoxItem>