RadDropDownButton with RadContextMenu keyboard navigation

3 posts, 0 answers
  1. Prasanna
    Prasanna avatar
    1 posts
    Member since:
    Jun 2011

    Posted 01 Jun 2011 Link to this post

    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. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 07 Jun 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 07 Jun 2011 Link to this post

    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
Back to Top