This question is locked. New answers and comments are not allowed.
Good afternoon,
I have what I believe to be a simple question regarding client-side events with the MVC TreeView control. What I am trying to determine is the parent node of a selected node. For example. Suppose this TreeView:
- RootNode
- ChildNode1
- ChildNode2
If ChildNode1 was selected, I want to be able to get RootNode in the JavaScript. I know that I can do...
to determine ChildNode1, but there does not appear to be any function or method in order to determine the parent node. Is there some way of doing this client-side? Thank you for your time.
I have what I believe to be a simple question regarding client-side events with the MVC TreeView control. What I am trying to determine is the parent node of a selected node. For example. Suppose this TreeView:
- RootNode
- ChildNode1
- ChildNode2
If ChildNode1 was selected, I want to be able to get RootNode in the JavaScript. I know that I can do...
var treeview = $('#trOfferings').data('tTreeView');var nodeText = treeview.getItemText(e.item);to determine ChildNode1, but there does not appear to be any function or method in order to determine the parent node. Is there some way of doing this client-side? Thank you for your time.