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

Keyboard Support in the RadMenu

1 Answer 53 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Joshua Tompkins
Top achievements
Rank 1
Joshua Tompkins asked on 22 Oct 2009, 06:16 PM
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.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Oct 2009, 02:31 PM
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) {);
</script>

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

Kind regards,
Yana
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.
Tags
Menu
Asked by
Joshua Tompkins
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or