Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > RadDropDownButton with RadContextMenu keyboard navigation

Not answered RadDropDownButton with RadContextMenu keyboard navigation

Feed from this thread
  • Prasanna avatar

    Posted on Jun 1, 2011 (permalink)

    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.

    Reply

  • Zarko Zarko admin's avatar

    Posted on Jun 7, 2011 (permalink)

    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
    Attached files

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Jun 7, 2011 (permalink)

    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
    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > RadDropDownButton with RadContextMenu keyboard navigation