DropDownListItem
Represents an individual item within the RadDropDownList control.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class DropDownListItem : ControlItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IMarkableStateManager, IStateManager, INamingContainer, IXmlSerializable, IComparable
Inheritance: objectControlWebControlControlItemDropDownListItem
Implements:
Inherited Members
Constructors
Initializes a new instance of the DropDownListItem class.
public DropDownListItem()
Initializes a new instance of the DropDownListItem class.
Initializes a new instance of the DropDownListItem class.
Properties
Gets the RadDropDownList which this item belongs to.
[Browsable(false)]
public RadDropDownList DropDownList { get; }
The RadDropDownList which this item belongs to; null (Nothing) if the item is not added to any RadDropDownList control.
Gets or sets the path to an image to display for the item.
[ClientPersistedProperty]
public string ImageUrl { get; set; }
The path to the image to display for the item. The default value is empty string.
Use the ImageUrl property to specify the image for the item. If the ImageUrl property is set to empty string no image will be rendered. Use "~" (tilde) when referring to images within the current ASP.NET application.
Gets or sets a value indicating whether this DropDownListItem is selected.
public bool Selected { get; set; }
true if selected; otherwise, false.
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Methods
protected override void AddAttributesToRender(HtmlTextWriter writer)
Overrides:
Compares the current instance with another object of the same type.
public int CompareTo(object obj)
An object to compare with this instance.
Returns:A 32-bit signed integer that indicates the relative order of the objects
being compared. The return value has these meanings: Value Meaning Less than
zero This instance is less than obj. Zero This instance is
equal to obj. Greater than zero This instance is greater than
obj.
obj is not the same type as this instance.
Implements:
protected override ControlItemCollection CreateChildItemCollection()
Overrides:
Removes this DropDownListItem from the RadDropDownList control which contains it.
public void Remove()
protected override void RenderContents(HtmlTextWriter writer)
Overrides: