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

TreeView right click

2 Answers 297 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 05 Apr 2012, 10:45 AM
This may be something I have to go and figure out on my own with an external piece of code, but I'm wondering if there's anyone out there that's implemented functionality on the TreeView through when a user right clicks on a node? This has recently come up on a piece of project work and I'd like to know the best way of doing this with the Kendo UI TreeView.

Any help would be appreciated, thanks!

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 09 Apr 2012, 01:21 PM
Hello Chris,

Currently Kendo UI does not support the TreeView right click functionality, but this idea has been already shared in our UserVoice page, so if you wish you can give your votes for it here. The more votes it collects, the sooner it will be planned. 


Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Miguel
Top achievements
Rank 1
answered on 10 Apr 2012, 02:38 AM
Well, first question is what exactly are you trying to accomplish?

For the general case, you can accomplish a right click event handler with jQuery very easily...  Rule of thumb is to bind only one event handler for the entire tree (for performance reasons), and filter out with selectors which nodes should invoke the right click handler.  Don't think about it in terms of attaching an event to each node, but rather an event to the entire and filter out which nodes invoke the right click event handler in the tree.

Take a look at the code in the link below... I only attach an event handler to the entire tree, then filter out the kinds of nodes that I get the right click event for.
http://jsfiddle.net/65Dha/11/ 


-Miguel
Tags
TreeView
Asked by
Chris
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Miguel
Top achievements
Rank 1
Share this question
or