Now it would be nice if the ContextMenu stays open and the user can set the Visiblity of all columns without having to right-click on the header for each single column he wants to show or hide and if the ContextMenu closes when you click outside of it.
Is there a way to do that with RadContextMenu?
3 Answers, 1 is accepted
RadMenuItem have StaysOpen property. If you set it to true then menuItem will keep the menu open (unless you click outside the menu). You can set it to all items that have to keep the menu open or you can use implicit style (without x:Key) and set it in the style so that it will apply to all menu items.
Here is a simple example:
Let us know if you need more information.
the Telerik team
though this post is quite old I hope to get help. Basically I want to do the same as the OP. I've tried to keep my RadContextMenu of one of my RadRibbonSplitButtons open so that the user can check several RadMenuItems at once without having to open the menu each time. I tried to achieve this by setting the RadContextMenu's StaysOpen property to True, by setting the StaysOpenOnClick property of the respective RadMenuItems to True and by setting the RadRibbonSplitButton's KeepOpen property to True. However, neither of those did work... Can you please help me?
Here's my XAML:
This behavior is caused by the built in auto-closing popup mechanism of the RadRibonSplitButton which cannot be disabled.
That said, we suggest using the RadSplitButton instead which doesn't have the mentioned above behavior and will allow for the RadContextMenu to stay open when the StaysOpenOnClick = "true".
Hope this helps.