Kendo-angular: TreeViewComponent nodeClick event

Created on 8 Feb 2018  路  4Comments  路  Source: telerik/kendo-angular

I'm submitting a...

  • Suggestion for improvement

Current behavior


It seems that there's no easy way to get informend when a user clicks a tree node.

Expected behavior


A TreeViewComponent > nodeClick event that fires everytime a user clicks a node.

What is the motivation or use case for changing the behavior?

This event would allow us to implement a context menu as described in documentation for the grid component: https://www.telerik.com/kendo-angular-ui/components/grid/advanced-features/context-menu/

Enhancement treeview

Most helpful comment

All 4 comments

The available selectionChange event behaves exactly like a nodeClick would. It will be raised once the user clicks the node. Would that be sufficient to accomplish your goal?

Hi @ggkrustev, thanks for your suggesting but that seems not to work...

tree.selectionChange - what I expected: It gets called when selection changes. That means, if I click the same node multiple times, I would expect, that selectionChange fires only the first time. (selection does not change, its the same node...)

tree.selectionChange - what happens: It fires for every click on a node, even if the selection does NOT change. BUT... it does not fire on mouse right click - only left clicks. (tested right now with @progress/kendo-angular-grid@^1.7.1)

grid.cellClick: gets called when the user does a right or left click on a grid cell.

So I thought I cannot use it because of the multiple clicks on the same node but it turns out that I cannot use it because it's not fired for context menu clicks.

Available in 2.3.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

papushe picture papushe  路  14Comments

jiangen1016 picture jiangen1016  路  16Comments

simon11196 picture simon11196  路  17Comments

simon11196 picture simon11196  路  17Comments

JaapMosselman picture JaapMosselman  路  28Comments