New to Telerik UI for WinForms? Download free 30-day trial

How to modify the default ContextMenu of the RadCheckedDropDownList


Product Version Product Author
2022.3.913 RadCheckedDropDownList for WinForms Dinko Krastev


This tutorial demonstrates how to add custom menu items to the default RadContextMenu of the RadCheckedDropDownList.


To add your custom RadMenuItems, you can subscribe to the ContextMenuOpening event of the AutoCompleteTextBox element inside the control. The code snippet below demonstrates how to navigate to this element.


public Form1()
    this.radCheckedDropDownList1.CheckedDropDownListElement.AutoCompleteEditableAreaElement.AutoCompleteTextBox.ContextMenuOpening += this.AutoCompleteTextBox_ContextMenuOpening;            

private void AutoCompleteTextBox_ContextMenuOpening(object sender, TreeBoxContextMenuOpeningEventArgs e)
    RadMenuItem menuItem1 = new RadMenuItem();
    menuItem1.Click += MenuItem1_Click;
    menuItem1.Text = "Show";

    RadMenuItem menuItem2 = new RadMenuItem();
    menuItem2.Click += MenuItem2_Click;
    menuItem2.Text = "Hide";


private void MenuItem1_Click(object sender, EventArgs e)
    // TODO

private void MenuItem2_Click(object sender, EventArgs e)

Public Sub New()
    Me.radCheckedDropDownList1.CheckedDropDownListElement.AutoCompleteEditableAreaElement.AutoCompleteTextBox.ContextMenuOpening += AddressOf Me.AutoCompleteTextBox_ContextMenuOpening
End Sub

Private Sub AutoCompleteTextBox_ContextMenuOpening(ByVal sender As Object, ByVal e As TreeBoxContextMenuOpeningEventArgs)
    Dim menuItem1 As RadMenuItem = New RadMenuItem()
    AddHandler menuItem1.Click, AddressOf MenuItem1_Click
    menuItem1.Text = "Show"

    Dim menuItem2 As RadMenuItem = New RadMenuItem()
    AddHandler menuItem2.Click, AddressOf MenuItem2_Click
    menuItem2.Text = "Hide"

End Sub

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

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

See Also

In this article