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

RadDropDownButton with RadContextMenu keyboard navigation

2 Answers 145 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Prasanna
Top achievements
Rank 1
Prasanna asked on 02 Jun 2011, 04:40 AM
Hello Telerik Team,

I am using RadContextMenu inside RadDropDown , here is the code sinnipet ,
<Controls1:RadDropDownButton Name="Report" Content="Report" Margin="5,0,0,0" >
                 <Controls1:RadDropDownButton.DropDownContent >
                     <Controls2:RadContextMenu Name="ReportMenu" StaysOpen="False" ItemsSource="{Binding ReportList}" KeyboardNavigation.IsTabStop="True" />
                </Controls1:RadDropDownButton.DropDownContent>
             </Controls1:RadDropDownButton>

When navigating through keyboard , using "Tab" key once reached to Report DropDownButton , after that when pressing Down Arrow key able to see the menuitems added . But not able to select the menuitems.

What neededs to do to allow MenuItems to ve selected with keybaord.

2 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 07 Jun 2011, 03:23 PM
Hi Prasanna,
In order for you to navigate through the MenuItems you'll have to change the focus a little bit. One way to do this is to handle the DropDownOpened and set the focus to the RadMenu or to some of its items. The difference is that if you focus the menu you'll have to navigate to the items by pressing tab once and then use the arrows and if you focus one of the items you'll be able to directly navigate with the arrows.
For further references could you please examine the attached project and if you have more questions feel free to ask.

Kind regards,
Zarko
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
0
Petar Mladenov
Telerik team
answered on 07 Jun 2011, 03:26 PM
Hello Prasanna,

I guess when the RadContextMenu opens, it does not focus its content. So you can do this programmatically in the Opened event handler. Please have a look at the attached solution and  let us know if it satisfies you.

Best wishes,
Petar Mladenov
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
Menu
Asked by
Prasanna
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Petar Mladenov
Telerik team
Share this question
or