I have a tree view Json object is
{
"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 "Two numbers" leaf node, mytree.currentNode.Name only shows "Two Numbers", But i want to display from the depth of the leaf node. "Root / Math / Addition / Two Numbers"
Is there any way to display?
Please help me. Thanks in advance