Overview

This topic lists the events specific for the RadComboBox control and it shows how to subscribe to an event.

Subscribing to Event

Subcribing to an event can be done in Xaml or in code behind.

Example 1: Subscribing to an event in Xaml

<telerik:RadComboBox x:Name="radComboBox" DropDownOpened="RadComboBox_DropDownOpened" /> 

Example 2: Subscribing to an event in code

 this.radComboBox.DropDownOpened += RadComboBox_DropDownOpened; 

Events

  • DropDownOpened: Occurs when the drop-down list of the combobox opens.

    Example 3: DropDownOpened event handler

        private void RadComboBox_DropDownOpened(object sender, EventArgs e) 
        { 
            var radComboBox = (RadComboBox)sender; 
        } 
    
  • DropDownClosed: Occurs when the drop-down list of the combobox closes.

    Example 4: DropDownClosed event handler

        private void RadComboBox_DropDownClosed(object sender, EventArgs e) 
        { 
            var radComboBox = (RadComboBox)sender; 
        } 
    
  • SelectionChanged: Occurs when the selected item is changed. The event arguments are of type SelectionChangedEventArgs and expose the AddedItems and RemovedItems properties which contain the newly selected and the unselected items.

    Example 5: SelectionChanged event handler

        private void RadComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) 
        { 
            var radComboBox = (RadComboBox)sender; 
            IList selectedItems = e.AddedItems; 
            IList unselectedItems = e.RemovedItems; 
        } 
    

    See Also

In this article
Not finding the help you need? Improve this article