This question is locked. New answers and comments are not allowed.
I have a TreeView with multiple layers
I'm then using this function to Select a Node:
What i want now is to collapse the whole tree, and expand nodes up until the Selected Node..
how do I accomplish that ?
thanks.
ps. I wish that i didn't need to use jQuery this much just to navigate in the MVC controls :-(
I'm then using this function to Select a Node:
function ClickNode(nodeid) { $("#TreeView").find(".t-input[name='itemValue'][value='" + nodeid + "']") .closest("div") .find(".t-in:first") .trigger("click");}What i want now is to collapse the whole tree, and expand nodes up until the Selected Node..
how do I accomplish that ?
thanks.
ps. I wish that i didn't need to use jQuery this much just to navigate in the MVC controls :-(