TreeView right click

3 posts, 0 answers
  1. Chris
    Chris avatar
    38 posts
    Member since:
    Feb 2012

    Posted 05 Apr 2012 Link to this post

    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. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 09 Apr 2012 Link to this post

    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!
  3. Miguel
    Miguel avatar
    8 posts
    Member since:
    Apr 2012

    Posted 09 Apr 2012 Link to this post

    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. 

Back to Top