more trees!

AnnieC

New Member
Ok, here's another one. How would one return a TreeView to its last expanded state? As I have it now, a user drills down (say 3 levels) and chooses a node. They are then taken to a different page to add/edit some info. When they are done they are returned to the page with the Tree, but right now it completely collapses down to it's root level again. I need it to stay as it was then the user left the page. I've played around with tracking the last node clicked, but not sure what to do with that value once I've got it. <BR><BR>Thanks,<BR><BR>])ry.Could you post a code snippet here so we have a reference for searches later :)Haha, ok, the short answer is:<BR><BR><mytree:treeview id="myTreeView" runat="server" expandLevel="Level of Int32 datatype"/><BR><BR>To solve my problem I'm going to have to pass the clicked node level to the add/edit page and then when I redirect the user it will send that level back to the Tree page. Then on pageLoad I'll check for the level parameter and programatically set the expanded level to the parameter value (myTreeView.ExpandLevel = paramValue). <BR><BR>Cheers,<BR><BR>])ry <BR><BR>
 
Back
Top