Represents a collection of DropDownListItem objects within the RadDropDownList control.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class DropDownListItemCollection : ControlItemCollection, IList, ICollection, IStateManager, IList<DropDownListItem>, ICollection<DropDownListItem>, IEnumerable<DropDownListItem>, IEnumerable
Inheritance: objectStateManagedCollectionControlItemCollectionDropDownListItemCollection
Implements:
Inherited Members
Constructors
Properties
Gets or sets the DropDownListItem at the specified index.
Methods
Appends an item to the collection.
public void Add(DropDownListItem item)
The item to add to the collection.
Implements:
Appends an item to the collection.
Inserts an item to the collection at the specified index.
public void Insert(int index, DropDownListItem item)
The zero-based index at which item should be inserted.
The item to insert into the collection.
Inserts an item to the collection at the specified index.
public virtual void Insert(int index, string text)
The zero-based index location at which to insert the DropDownListItem.
textstringThe text of the new item.
Removes the specified item from the collection.
public void Remove(DropDownListItem item)
The item to remove from the collection.
Removes the DropDownListItem object at the specified index from the current DropDownListItemCollection.
Sort the items from DropDownListItemCollection.
public void Sort()
Sort the items from DropDownListItemCollection.
public void Sort(Func<DropDownListItem, object> predicate)
Sort the items from DropDownListItemCollection.
public void Sort(IComparer comparer)
An object from IComparer interface.