This question is locked. New answers and comments are not allowed.
Hi,
I'm persiting treeview state in a cookie.
Rather than store the expanded/collapsed state for every node, I'd rather just store the currently selected node. My controller then passes the SelectedNode to the view containing the tree and the item is set as follows...
My question is, how can I get the treeview to expand all the parent nodes of an item that I set as Selected during the bind?
Thanks,
Alastair Eddie
I'm persiting treeview state in a cookie.
Rather than store the expanded/collapsed state for every node, I'd rather just store the currently selected node. My controller then passes the SelectedNode to the view containing the tree and the item is set as follows...
item.Selected = ((string)ViewData["SelectedNode"] == item.Value);Thanks,
Alastair Eddie