This is a migrated thread and some comments may be shown as answers.

How to persist state

1 Answer 101 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 03 Nov 2008, 04:32 PM
Hi,
I am going to use a tree view on a master page and as users navigate from page to page I would like to have the tree maintain its state (i.e. whatever nodes are collapsed/expanded/selected) going from page to page.
What is the recommended way of doing this?
Thanks ... Ed

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Nov 2008, 08:22 AM
Hi Ed,

Here is a code library submission which explains how to keep the expanded state of r.a.d.treeview between postbacks when the treeview is being bound upon each postback.
Save the expanded state of the TreeNodes when the treeview is being bound upon each postback

Thanks
Shinu
Tags
TreeView
Asked by
Ed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or