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

Navigate URL using Access Key.

3 Answers 80 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Ramakrishna Thadivaka
Top achievements
Rank 1
Ramakrishna Thadivaka asked on 04 Mar 2010, 07:29 AM
Hi There,

Thanks for the previous reply's here i was struck up with one problem which is i am unable to access particular page directly using Access Key's such as i am unable to Access any navigate URL page directly without clicking "Enter: instead it is only selected.

Can help me out how can i navigate directly by using access keys with out clicking "Enter".



Thanks in Advance,
T.Ramakrishna.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Mar 2010, 08:49 AM
Hello Ramakrishna,

You can handle OnClientItemFocus:

<script type="text/javascript">
       function OnClientItemFocus(sender, eventArgs) {
           window.navigate(eventArgs.get_item().get_navigateUrl());
       }
   </script>
   <telerik:RadMenu ID="RadMenu1" OnClientItemFocus="OnClientItemFocus" runat="server">
       <Items>
           <telerik:RadMenuItem runat="server" AccessKey="t" Text="telerik" NavigateUrl="http://www.telerik.com">
           </telerik:RadMenuItem>
           <telerik:RadMenuItem runat="server" AccessKey="g" Text="google" NavigateUrl="http://www.google.com">
           </telerik:RadMenuItem>
       </Items>
   </telerik:RadMenu>


All the best,
Peter
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
Vesko
Top achievements
Rank 2
answered on 09 Mar 2010, 08:50 AM
This is not possible out of the box. The purpose of the Access Keys is to select/focus the item, not to click it.

You can easily test this with an <A> element:

<href="http://www.google.com" accesskey="N" >Click Alt+N (in IE) to focus me</a> 

The element is just focused, but you still need to hit Enter to navigate to that page.
0
Sanjay
Top achievements
Rank 1
answered on 30 Dec 2011, 09:51 AM
Hi,
I am focusing radmenuitem, but it should navigate on enter key after focus.

Please suggest a solution.
Thanks in advance.

Regards,
Sanjay
Tags
Menu
Asked by
Ramakrishna Thadivaka
Top achievements
Rank 1
Answers by
Peter
Telerik team
Vesko
Top achievements
Rank 2
Sanjay
Top achievements
Rank 1
Share this question
or