Thursday, March 22, 2012

Maintaining treeview expand collapse status per node?

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.
?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" <news@.hellobasic.com> schreef in bericht
news:43706a62$0$2343$ba620dc5@.text.nova.planet.nl. ..
> 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.
> ?

0 comments:

Post a Comment