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

Access key issue.

9 Answers 91 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 02 Mar 2010, 09:31 AM
Hi There,

I am using RadMenu with access key for each RadMenuItem its working fine when i click alt + (respected access key) but the problem is when i am clicking "alt + (respected access key)" that respected RadMenuItem is been selected only, it is not being opened such as when we MouseOver it will be opened.

Could please help me out how can i get RadMenuItem Opened on clicking of "alt + (respected access key)".

Thanks in Advance,
T.Ramakrishna.

9 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 02 Mar 2010, 12:51 PM
Hello Ramakrishna,

Yes. The AccessKey property is only to quickly navigate to a particular item. To be able to open the Menu Item with the AccessKey, please handle OnClientItemFocus as follows:

function OnItemFocus(sender, eventArgs)
    {
      var item = eventArgs.get_item();
      {
        item.open();
      }
    }

You can see the full solution in the attached .zip file.

Greetings,
Veronica Milcheva
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
Ramakrishna Thadivaka
Top achievements
Rank 1
answered on 03 Mar 2010, 01:58 PM
Thanks for the reply Veronica Milcheva,

Issue for my previous problem as been solved thanks for that. Here i am havng one more problem which is after clicking "alt + Access Key" the menu items are being opened its fine but in that menu items i am having 4 menu items for each menu items i am again having 2 menu items at first when i am clicking "alt + Access Key" the menu items are being opened in that if i am having access keys for each menu items then their also i need to type "alt + Access Key" can i get any solution for which i can access those menuitems which are inside main menuitems without "alt + Access Key" directly with only "Access Key" and also if these menu items which are inside main menu items are redirecting to any other page using Navigate url then those menu items can directly navigate to that URL with only typing the "Access Key" without "Enter".

Reply me as soon as possible.


Thanks in Advance
T.Ramakrishna
0
Veronica
Telerik team
answered on 08 Mar 2010, 06:08 PM
Hello Ramakrishna Thadivaka,

One possible solution for navigating without pressing the Enter key is by using this Javascript:

function OnItemFocus(sender, eventArgs)
    {
      var item = eventArgs.get_item();
      {
        window.location.href = item.get_navigateUrl();
      }
    }

The idea is that via the AccessKey property the Item gets the focus. After that the only needed thing to do is to redirect to another page.

I've attached the full example code as a .zip file.

Please let me know if this was helpful.

Greetings,
Veronica Milcheva
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
Sanjay
Top achievements
Rank 1
answered on 28 Dec 2011, 02:29 PM
Hi,
I am facing the same problem for RadMenu control (In Web Application).
I am able to focus on RadMenuItem but not able to navigate it using ENTER key.
I want to navigate radmenuitem on pressing ENTER key.

Please reply.

Thanks,
Sanjay

0
Peter
Telerik team
answered on 28 Dec 2011, 03:03 PM
Hi Sanjay,

Please, view this kb article - http://www.telerik.com/support/kb/aspnet-ajax/toolbar/how-to-trigger-itemclick-event-by-pressing-the-enter-key.aspx.


All the best,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Sanjay
Top achievements
Rank 1
answered on 29 Dec 2011, 06:25 AM

Peter, Thanks for reply.

Your solution is for toolbar. I Actually want radmenu item click should navigate using enter key.
I am able to focus on radmenuitem, when i press enter key, it should navigate to other page or click event should fire.
0
Kate
Telerik team
answered on 02 Jan 2012, 02:32 PM
Hello Sanjay,

Please refer to the client side API of the RadMenu control that contains examples of how you can find the desired RadMenuItem and use the click() property to achieve the needed functionality. The example that Peter provided is indeed related to the RadToolBar control but the approach that you need to use is the same therefore I believe the KB article seems to be very useful. In case this does not help, can you please send  us the code that you are using so we could test it locally and help you out.

Regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Sanjay
Top achievements
Rank 1
answered on 03 Jan 2012, 06:07 AM

Kate and Peter,
Thanks a lot for help. 

I have implemented the solution, provided by peter. It's working fine for me.
I am trying same thing with RadTabStrip but its not working. could you please help me on this?

Thanks,
Sanjay

0
Kate
Telerik team
answered on 05 Jan 2012, 02:35 PM
Hi Sanjay,

If you refer to the client-side properties that the RadTabStrip control supports you will find that the click() property is also available. Referring to the article mentioned above you can also see how you can find the particular tab by using various approaches (by text or by value for instance). Therefore the approach would be very similar, if not identical, to the one used for the RadMenu and the RadToolBar controls.    

All the best,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Menu
Asked by
Ramakrishna Thadivaka
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Ramakrishna Thadivaka
Top achievements
Rank 1
Sanjay
Top achievements
Rank 1
Peter
Telerik team
Kate
Telerik team
Share this question
or