Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ColorPicker > Keeping Parent Menu Open on Click

Not answered Keeping Parent Menu Open on Click

Feed from this thread
  • Daniel Wong avatar

    Posted on Mar 31, 2010 (permalink)

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

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

    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?

    Reply

  • Bobi Bobi admin's avatar

    Posted on Apr 6, 2010 (permalink)

    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">
                        <MenuItem.Header>
                            <input:RadColorSelector />
                        </MenuItem.Header>
             </MenuItem>    
      </MenuItem>

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

    Best wishes,
    Bobi
    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ColorPicker > Keeping Parent Menu Open on Click
Related resources for "Keeping Parent Menu Open on Click"

WPF ColorPicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]