Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Maintaining treeview expand collapse status per node?

Reply
Thread Tools

Maintaining treeview expand collapse status per node?

 
 
Edwin Knoppert
Guest
Posts: n/a
 
      11-08-2005
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.
?


 
Reply With Quote
 
 
 
 
Edwin Knoppert
Guest
Posts: n/a
 
      11-09-2005
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" <> schreef in bericht
news:43706a62$0$2343$. ..
> 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.
> ?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Expand/Collapse script expands but does not collapse M.L. Javascript 9 08-29-2007 08:49 PM
How to put Expand all and Collapse all button for a asp.net TreeView Control ? vivek ASP .Net 2 06-14-2007 05:24 AM
Expand/collapse treeview nodes by clicking the node text Tor Inge Rislaa ASP .Net 0 02-05-2007 10:31 PM
Treeview - single click expand/collapse with XMLDatasource jim ASP .Net 0 11-01-2006 12:10 AM
urgent please : treeview control expand collapse Gönen EREN ASP .Net 4 08-16-2003 06:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57