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

How do I keep my TreeView expansion

1 Answer 40 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tonyz289
Top achievements
Rank 1
Tonyz289 asked on 03 Nov 2011, 11:48 PM
I have a treeview that is expanded but the second I do anything on the page the Treeview goes back to its unexpanded state. How do I prevent this from happening?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Nov 2011, 05:09 AM
Hello Tony,

Check the following code library which explains how to persist TreeView expanded state.
Save the expanded state of the TreeNodes when the treeview is being bound upon each postback.

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