how to open the context menu on radtreeview node click using tabs?

2 posts, 0 answers
  1. Mohinder Goswami
    Mohinder Goswami avatar
    24 posts
    Member since:
    Nov 2008

    Posted 01 Jun 2012 Link to this post


    i am using RadTreeview in my project. For nodes we are using the contextmenu, so, they will be opened upon right click of mouse. this is fine.

    as a part of section 508, how blind user will open that context menu on radtreeview node?
    Mohinder Goswami.
  2. Plamen
    Plamen avatar
    3048 posts

    Posted 06 Jun 2012 Link to this post

    Hello Mohinder ,

    Here is the code that opens the context menu on "Enter" click:

    function OnClientKeyPressing(sender, args) {
                var node = args.get_node();
                var key = args.get_domEvent().keyCode;
               //13 is "enter after the treeView is focused"
                if (key == "13") {
                   var menu = node.get_contextMenu();
                   var pos = $telerik.getLocation(node.get_element());
                    menu.showAt(pos.x, pos.y);
    <telerik:RadTreeView ID="RadTreeView1" runat="server" Skin="Vista" TabIndex="1" OnClientKeyPressing="OnClientKeyPressing">

    Hope this will be helpful.

    Plamen Zdravkov
    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