I have the following code:
When you run this sample, notice that the "RadDropDownButton" will keep the context menu visible (allowing the user to check more than one item) and not close the popup until the user clicks away or on the button again. The "RadRibbonDropDownButton" seems to ignore the "StaysOpen" property of the context menu and closes the popup everytime a click is made either on the context menu or away from it.
Is there a reason for this? I found the "KeepOpen" property on both the "RadDropDownButton" and the "RadRibbonDropDownButton" but that is not suitable for my case. I would like the context menu to close if the user clicks either the button or somewhere else on the screen. The "KeepOpen" property seems to force the user to click on the button again to close the menu (which lets them have multiple context menus open which isn't good for me)...
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"1*"
/>
<
ColumnDefinition
Width
=
"1*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadDropDownButton
Content
=
"RDDB"
Grid.Column
=
"0"
>
<!-- KeepOpen="True" -->
<
telerik:RadDropDownButton.DropDownContent
>
<
telerik:RadContextMenu
StaysOpen
=
"True"
>
<
telerik:RadMenuItem
Header
=
"1"
IsCheckable
=
"True"
/>
<
telerik:RadMenuItem
Header
=
"2"
IsCheckable
=
"True"
IsChecked
=
"True"
/>
<
telerik:RadMenuItem
Header
=
"3"
IsCheckable
=
"True"
/>
</
telerik:RadContextMenu
>
</
telerik:RadDropDownButton.DropDownContent
>
</
telerik:RadDropDownButton
>
<
telerik:RadRibbonDropDownButton
Content
=
"RRDDB"
Grid.Column
=
"1"
>
<!-- KeepOpen="True" -->
<
telerik:RadRibbonDropDownButton.DropDownContent
>
<
telerik:RadContextMenu
StaysOpen
=
"True"
>
<
telerik:RadMenuItem
Header
=
"1"
IsCheckable
=
"True"
/>
<
telerik:RadMenuItem
Header
=
"2"
IsCheckable
=
"True"
IsChecked
=
"True"
/>
<
telerik:RadMenuItem
Header
=
"3"
IsCheckable
=
"True"
/>
</
telerik:RadContextMenu
>
</
telerik:RadRibbonDropDownButton.DropDownContent
>
</
telerik:RadRibbonDropDownButton
>
</
Grid
>
When you run this sample, notice that the "RadDropDownButton" will keep the context menu visible (allowing the user to check more than one item) and not close the popup until the user clicks away or on the button again. The "RadRibbonDropDownButton" seems to ignore the "StaysOpen" property of the context menu and closes the popup everytime a click is made either on the context menu or away from it.
Is there a reason for this? I found the "KeepOpen" property on both the "RadDropDownButton" and the "RadRibbonDropDownButton" but that is not suitable for my case. I would like the context menu to close if the user clicks either the button or somewhere else on the screen. The "KeepOpen" property seems to force the user to click on the button again to close the menu (which lets them have multiple context menus open which isn't good for me)...