MultiColumnComboBox DropDown Doesn't Close After Context Menu Is Opened
Environment
Product Version | |
Product | RadMultiColumnComboBox for WPF |
Description
Setting the KeepDropDownOpen
property of RadMultiColumnComboBox to False
enables the auto closing feature of the drop down part of the control. However, opening a RadContextMenu for an element inside the dropdown is breaking the functionality. This means that clicking outside of the RadMultiColumnComboBox control won't close its drop down.
Solution
To resolve this, set the RestoreFocusToTargetElement
property of the RadContextMenu
control to True
.
<telerik:RadMultiColumnComboBox KeepDropDownOpen="False">
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu RestoreFocusToTargetElement="True">
<telerik:RadMenuItem Header="Copy"/>
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>
</telerik:RadMultiColumnComboBox>