New to Telerik UI for WinFormsStart a free 30-day trial

Cancel Drop Down Closing

Updated over 6 months ago

RadMultiColumnComboBox offers the DropDownClosing event which is fired just before the pop up gets closed. This is an appropriate place to prevent closing the drop down according to any custom criteria, e.g. a certain row in the pop up grid is selected.

C#

private void RadMultiColumnComboBox1_DropDownClosing(object sender, RadPopupClosingEventArgs args)
{
    if (this.radMultiColumnComboBox1.EditorControl.CurrentRow != null && 
        this.radMultiColumnComboBox1.EditorControl.CurrentRow.Index == 2)
    {
        args.Cancel = true;
    }
} 

Not finding the help you need?
Contact Support