This is a migrated thread and some comments may be shown as answers.

Keeping Parent Menu Open on Click

1 Answer 51 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Daniel Wong
Top achievements
Rank 1
Daniel Wong asked on 31 Mar 2010, 07:02 PM
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?

1 Answer, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 06 Apr 2010, 08:12 AM
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.
Tags
ColorPicker
Asked by
Daniel Wong
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Share this question
or