I know that when you select a node this event is called.
If you select another node, it is called TWICE.
Is there a way to know which it is calling it for (Unselecting or Selecting).
This way I can skip code on the unselecting one and only do code on the newly selected node.
Thanks,
1 Answer, 1 is accepted
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 18 Feb 2022, 01:02 PM
Hello Roger,
By design, when multiple selections are allowed and you click a new node, the selection is supposed to be cleared. That is why the SelectedNodeChanged event is fired for the previously selected node first and then it is fired for the new node. In the RadTreeViewEventArgs you can distinguish the two event firings by the Action which is set to Unknown when the selection is cleared.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Is there a place in the documentation where this is shown?
Thanks,
Dinko | Tech Support Engineer
Telerik team
commented on 22 Feb 2022, 02:40 PM
Thank you for the provided feedback. I have double-checked and this is not mentioned in the documentation. Therefore I have logged an internal item in our backlog to update the RadTreeView documentation. We appreciate any feedback from our customers. I have updated your Telerik Points for bringing this to our attention.