Thanks for your anwser.
Maybe I'm confused, but I think that this doesn't solve my problem.
My problem is: this is the initial treeview status:
- PARENT1
Child1_Parent1
+ PARENT2
+ PARENT3
As you can see, first time only Parent1 is expanded. This is my initial status. Ok until here.
Now, the user starts using treeview, and get this status:
- PARENT1
Child1_Parent1
- PARENT2
Child1_Parent2
Child2_Parent2
+ PARENT3
As you can see, now first and second nodes are expanded. Ok.
The user starts using the website, moving from one page to another, while treeview persist its status. This is ok.
If the user close the browser and open it again, when treeview is displayed it showns as the second status, because EnablePersistence=true. This is what I need to change.
So, I need to "clear" this status when the user open the page the first time in his session. Then, while working in the website etc, persistence is ok. But when the session is closed I need to clear it.
Thanks