Keeping Parent Menu Open on Click

2 posts, 0 answers
  1. Daniel Wong
    Daniel Wong avatar
    1 posts
    Member since:
    Mar 2010

    Posted 31 Mar 2010 Link to this post

    I'm trying to create a menu that will stay open when the user clicks on any child items (see below).

    <MenuItem StaysOpenOnClick="True" Header="MenuTitle1.0" >
    <MenuItem StaysOpenOnClick="true" Header="Label">
    <TextBox Text="TextBoxFiller" />
    <MenuItem StaysOpenOnClick="true" Header="Menu1.1">
    <MenuItem StaysOpenOnClick="true" Header="Menu1.2">
    <telerik:RadColorSelector />

    While this seems to work for the textbox (sort of), when ever the user clicks on the RadColorSelector, the menu closes, despite setting the StaysOpenOnClick to "True". Thoughts?
  2. Bobi
    Bobi avatar
    513 posts

    Posted 06 Apr 2010 Link to this post

    Hi Daniel Wong,

    This is the default behavior of all selector controls (LixtBox/TreeView etc.).
    You can accomplish the desired functionality by using the following code:
    <MenuItem StaysOpenOnClick="true" Header="Menu1.2">
            <MenuItem StaysOpenOnClick="true">
                            <input:RadColorSelector />

    I hope that this will help you. Please let us know if you have any other questions or need some more help.

    Best wishes,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top