Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Here is the code that opens the context menu on "Enter" click:
function
OnClientKeyPressing(sender, args) {
var
node = args.get_node();
key = args.get_domEvent().keyCode;
//13 is "enter after the treeView is focused"
if
(key ==
"13"
) {
menu = node.get_contextMenu();
pos = $telerik.getLocation(node.get_element());
menu.showAt(pos.x, pos.y);
}
<telerik:RadTreeView ID=
"RadTreeView1"
runat=
"server"
Skin=
"Vista"
TabIndex=
"1"
OnClientKeyPressing=
"OnClientKeyPressing"
>