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

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

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Suresh
Top achievements
Rank 1
Suresh asked on 01 Jun 2012, 11:56 PM
Hi,

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?
thanks,
Mohinder Goswami.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 06 Jun 2012, 01:53 PM
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.

Greetings,
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.
Tags
TreeView
Asked by
Suresh
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or