Keyboard Support in the RadMenu

2 posts, 0 answers
  1. Joshua Tompkins
    Joshua Tompkins avatar
    1 posts
    Member since:
    Sep 2012

    Posted 22 Oct 2009 Link to this post

    Is it possible to disable keyboard support in the RadMenu?

    I'm using a RadContextMenu and a RadInput control to build a "wordwheel" type auto-complete text box.  As the user types, I populate the items in a RadContextMenu with the results of a web service call.  I'd like to implement keyboard support, but the keyboard events for the RadMenu are interfering.  I'd like to disable the native support for the arrow keys, tab, and enter on the menu, but I can't find a way to do this.

    Also, is there a CSS style for the currently "selected" menu item? I am calling item.set_selected(true), but there doesn't seem to be any visible indication of which item is selected in the menu.

  2. Yana
    Yana avatar
    5039 posts

    Posted 27 Oct 2009 Link to this post

    Hi Joshua,

    Please add the following javascript code to your page in order to disable keyboard support of RadMenu:

    <script type="text/javascript"
        Telerik.Web.UI.RadMenuItem.prototype._onKeyDown = function(e) {);

    Regarding the second question, please set EnableSelection property of the menu to true.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top