Maintaining treeview expand collapse status per node?

Discussion in 'ASP .Net' started by Edwin Knoppert, Nov 8, 2005.

  1. I'm using a simple treeview for helpsystem.
    The treeview is on a masterpage, right beside it it has the container.
    The user uses the treeview to navigate to helppages using this masterpage.
    But on each page load the treeview nodes are collapsed to original state.

    1) I want to maintain the nodes expanded state.
    2) I would like to select the node when the node is clicked which results in
    a page reload.
    This should re-select the node with a dotted line or being bold or so.

    I can do #2 but maybe there is a quick solution to this all.
    Edwin Knoppert, Nov 8, 2005
    1. Advertisements

  2. I did this the hard way by enumming all nodes and store the 'boolean's' in
    one session var.

    Still wonder if there isn't a better approach though.
    Edwin Knoppert, Nov 9, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.