Access key issue.

10 posts, 0 answers
  1. Ramakrishna Thadivaka
    Ramakrishna Thadivaka avatar
    5 posts
    Member since:
    Jan 2010

    Posted 02 Mar 2010 Link to this post

    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.
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 02 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ramakrishna Thadivaka
    Ramakrishna Thadivaka avatar
    5 posts
    Member since:
    Jan 2010

    Posted 03 Mar 2010 Link to this post

    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
  5. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 08 Mar 2010 Link to this post

    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.
  6. Sanjay
    Sanjay avatar
    5 posts
    Member since:
    Dec 2011

    Posted 28 Dec 2011 Link to this post

    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

  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 28 Dec 2011 Link to this post

    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
  8. Sanjay
    Sanjay avatar
    5 posts
    Member since:
    Dec 2011

    Posted 29 Dec 2011 Link to this post


    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.
  9. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 02 Jan 2012 Link to this post

    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
  10. Sanjay
    Sanjay avatar
    5 posts
    Member since:
    Dec 2011

    Posted 03 Jan 2012 Link to this post


    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

  11. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 05 Jan 2012 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017