New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadDropDownListItem Object

The RadDropDownListItem object is returned by the getItem method of the RadDropDownList or RadDropDownListItemCollection object. It is also exposed by the event arguments of many client-side events (eventArgs.get_item()). The following table lists the most important methods:

NameParametersReturn TypeDescription
set_enabledBooleannoneEnables the item if it is disabled
get_textElementnonenoneReturns the element of the item
get_imageElementnonenoneReturns the element of the item
remove_imageElementnonenoneRemoves the element of the item
get_textnoneStringGets the Text of the item
get_valuenoneStringGets th Value of the item
set_visibleBooleannoneSets whether the item is visible
set_elementnonenoneSets the item's DOM element
findControlNumbernoneSearches the DropDownListItem for a client control with the specified id parameter.
toJsonStringnoneStringThe JSON representation of the DropDownListItem
get_attributesnoneAttributeCollectionGets the arbitrary attributes collection
get_elementnonenoneGets he DOM element for the DropDownListItem
get_parentnonenoneThe DropDownListItem's parent
get_dropDownListnoneRadDropDownListGets the RadDropDownList client-object
set_parentnonenoneSets the DropDownListItem's parent
set_textStringnoneSets the DropDownListItem's text
set_valueStringnoneSets the DropDownListItem's value
get_selectednoneBooleanReturns whether the item is selected
set_selectedBooleannoneSelects the item
get_imageUrlnoneStringGets the value of the ImageUrl property
set_imageUrlStringnoneSets the ImageUrl property of the item
selectnonenoneSelects the item (equal to set_selected(true))
unselectnonenoneUnselects the item (equal to set_selected(false))
get_indexnoneNumberGets the DropDownListItem's index inside the DropDownListItemCollection
get_visiblenoneBooleanGets a value indicating whether the DropDownListItem is visible or not
get_isLastnoneBooleanGets a value indicating whether the DropDownListItem is the last item in the ControlItemCollection
get_isFirstnoneBooleanGets a value indicating whether the ControlItem is the first item in the ControlItemCollection
get_nextSiblingnoneControlItemGets an instance of the next sibling of a ControlItem
get_previousSiblingnoneControlItemGets an instance of the previous sibling of a ControlItem.
get_clientTemplatenonenoneReturns the value of the DropDownListItem's ClientTemplate property.
set_clientTemplateStringnoneSets the value of the DropDownListItem's ClientTemplate property.
bindTemplatenonenoneEvaluates the template against the DropDownListItem's data item and applies it.
Not finding the help you need?
Contact Support