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

MenuItem Click

1 Answer 160 Views
RadialMenu
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 02 Jun 2015, 08:49 PM

Hi

On your WPF demo, when a menuitem that has child menuitems is clicked (not using it's header, just on the name/icon), the child items are shown.

This saves this user having to click on the outer circle header which is handy.

How's this done, I can't get this to happen?

I've made the parent menuitem CanUserSelect="True", do I need to wire up some code also??

 

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 05 Jun 2015, 05:58 AM
Hello Jason,

In order to navigate to child items you need to execute the NavigateToView command and and you can do so, for example int the Click event of the specific item:

private void RadRadialMenuItem_Click(object sender, Telerik.Windows.RadRoutedEventArgs e)
 {
   var context = new NavigateContext(sender as RadRadialMenuItem);
   this.radialMenu.CommandService.ExecuteCommand(Telerik.Windows.Controls.RadialMenu.Commands.CommandId.NavigateToView, context);
 }

Hope this would help.

Regards,
Georgi
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
RadialMenu
Asked by
Jason
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or