Indicating Focus in RadDropDownList


Product Version 2019.3.911
Product RadDropDownList for WinForms


RadDropDownList defines two styles affecting the editor and determining whether the end user can type in it or not. A common requirement is to set the DropDownStyle to DropDownList which will disable the input in the editor. In this kind of setup, the control shows that it has the focus by painting a border around the textbox in most of the themes. The example here will demonstrate how the focus cues can be enabled, and additionally, how the fore-color and back color of the editor can be changed when it receives and looses the focus.


The AllowShowFocusCues property of the control needs to be set to true. The control also needs to be subscribed to its GotFocus and LostFocus where the its Back and Fore colors will be changed using the Override Theme Settings at Run-time API.

Figure 1: Indicating Focus

dropdownlist-style-indicating-focus 001

Form`s class

public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    private BindingList<DataObject> data;
    public RadForm1()

        this.radDropDownList1.AllowShowFocusCues = true;
        this.radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; = new BindingList<DataObject>(); DataObject() { Name = "Item 0" }); DataObject() { Name = "Item 1" }); DataObject() { Name = "Item 2" });

        this.radDropDownList1.DataSource =;
        this.radDropDownList1.DisplayMember = "Name";

        this.radDropDownList1.GotFocus += RadDropDownList1_GotFocus;
        this.radDropDownList1.LostFocus += RadDropDownList1_LostFocus;

    private void RadDropDownList1_LostFocus(object sender, EventArgs e)

    private void RadDropDownList1_GotFocus(object sender, EventArgs e)
        this.radDropDownList1.DropDownListElement.EditableElement.SetThemeValueOverride(RadItem.BackColorProperty, Color.FromArgb(51, 153, 255), "RadDropDownListEditableAreaElement");
        this.radDropDownList1.DropDownListElement.EditableElement.SetThemeValueOverride(RadItem.ForeColorProperty, Color.White, "RadDropDownListEditableAreaElement");

Public Class RadForm1

    Private data As BindingList(Of DataObject)

    Public Sub New()

        Me.radDropDownList1.AllowShowFocusCues = True
        Me.radDropDownList1.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList = New BindingList(Of DataObject)() DataObject() With {
            .Name = "Item 0"
        }) DataObject() With {
            .Name = "Item 1"
        }) DataObject() With {
            .Name = "Item 2"

        Me.radDropDownList1.DataSource =
        Me.radDropDownList1.DisplayMember = "Name"
        AddHandler Me.radDropDownList1.GotFocus, AddressOf RadDropDownList1_GotFocus
        AddHandler Me.radDropDownList1.LostFocus, AddressOf RadDropDownList1_LostFocus
    End Sub

    Private Sub RadDropDownList1_LostFocus(ByVal sender As Object, ByVal e As EventArgs)
    End Sub

    Private Sub RadDropDownList1_GotFocus(ByVal sender As Object, ByVal e As EventArgs)
        Me.radDropDownList1.DropDownListElement.EditableElement.SetThemeValueOverride(RadItem.BackColorProperty, Color.FromArgb(51, 153, 255), "RadDropDownListEditableAreaElement")
        Me.radDropDownList1.DropDownListElement.EditableElement.SetThemeValueOverride(RadItem.ForeColorProperty, Color.White, "RadDropDownListEditableAreaElement")
    End Sub
End Class

See Also

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

Give article feedback

Tell us how we can improve this article