Edit this page

Accessing and Customizing Elements

Accessing and customizing elements can be performed either at design time, or at run time. Before proceeding with this topic, it is recommended to get familiar with the visual structure of the RadDropDownList.

Design time

You can access and modify the style for different elements in RadDropDownList by using the Element hierarchy editor.

Fig.1 Element hierarchy editor

dropdown-and-listcontrol-dropdownlist-accessing-and-customizing-elements 001

Programmatically

You can customize the nested elements at run time as well:

Fig.2 Customize elements

dropdown-and-listcontrol-dropdownlist-accessing-and-customizing-elements 002

Customize elements


this.radDropDownList1.DropDownListElement.ArrowButton.Fill.BackColor = Color.Aqua;
this.radDropDownList1.DropDownListElement.EditableElement.ForeColor = Color.Red;

Me.radDropDownList1.DropDownListElement.ArrowButton.Fill.BackColor = Color.Aqua
Me.radDropDownList1.DropDownListElement.EditableElement.ForeColor = Color.Red

In order to style the pop-up items it is suitable to use the VisualItemFormatting event.

Was this article helpful? Yes No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy