My tree view Json object looks like this:
{
"Name": "Root",
"Id": "-1",
"ParentId": "null",
"children": [
{
"Name": "Math",
"Id": "1",
"ParentId": "-1",
"children": [
{
"Name": "Addition",
"Id": "3",
"ParentId": "1",
"children": [
{
"Name": "Two Numbers",
"Id": "5",
"ParentId": "3",
"children": []
},
{
"Name": "Three Numbers",
"Id": "6",
"ParentId": "3",
"children": []
}
]
},
{
"Name": "Substraction",
"Id": "4",
"ParentId": "1",
"children": [
{
"Name": "Four Numbers",
"Id": "7",
"ParentId": "4",
"children": []
},
{
"Name": "Five Numbers",
"Id": "8",
"ParentId": "4",
"children": []
}
]
}
]
},
{
"Name": "English",
"Id": "1",
"ParentId": "-1",
"children": []
}
],
"selected": "selected"
}
If I select the leaf node "Two numbers," mytree.currentNode.Name will only display "Two Numbers." However, I would like to show the full path from the root to the selected node: "Root / Math / Addition / Two Numbers." Is there a way to achieve this? Please provide assistance. Thank you in advance.