Hi Guys,
Is there any way to get a selected node path from the TreeView?
What I am trying to do is to implement a 'select' event handler:
Ideally I would like to get an array of all the parents all the way up to the root of the tree.
How would I do it?
Cheers,
Alexey.
Is there any way to get a selected node path from the TreeView?
What I am trying to do is to implement a 'select' event handler:
$('#myTreeView').kendoTreeView({ select: function(data) { //DO Something //DO Something else var path = GetNodePath(); //Implementation needed publishEvent("MyItemActivated", path); //pseudocode }});Ideally I would like to get an array of all the parents all the way up to the root of the tree.
How would I do it?
Cheers,
Alexey.
Hi Ramesh,
With the KendoReact TreeView you can use the index of the checked item and split it by "_" to get the indexes of each of the parent items and add them to the array that holds the selected items indexes.
Hope this helps.