0

I have the following Kendo UI AngularJS tree that has a related context menu. How can I get the tree node that is selected when the context menu is opened on right click? The tree k-on-change event seems to be triggered only on left click.

This is the plunk

1 Answer 1

2

I had the same Problem and fixed it by selecting the node by hand on right click.

Using ng-right-click you can assign selectedItem. Check your updated plunk below.

$scope.onRightClick = function(e) {
  var node = e.target;
  $scope.tree.select(node);
  $scope.selectedItem = $scope.tree.dataItem(node);
}

Your fixed Plunk

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.