Home All Groups Group Topic Archive Search About

How to keep state of treeview control

Author
20 Sep 2006 3:01 AM
Peter Afonin
Hello,

I've created a web application using Visual Studio 2005. I have a treeview
control there. When the user expands it and clicks on the link, the treeview
collapses automatically.

Is it possible to keep it expanded to the level the user expanded it? In
other words, to keep the state of the treeview control between postbacks? Of
course I can use frames or something like this, but it should be an easier
way to do this.

I would appreciate your advice.

Thank you,

--
Peter Afonin

Author
20 Sep 2006 3:50 AM
Sean Chambers
Is ViewState enabled for the treeview?

Sean

Peter Afonin wrote:
Show quoteHide quote
> Hello,
>
> I've created a web application using Visual Studio 2005. I have a treeview
> control there. When the user expands it and clicks on the link, the treeview
> collapses automatically.
>
> Is it possible to keep it expanded to the level the user expanded it? In
> other words, to keep the state of the treeview control between postbacks? Of
> course I can use frames or something like this, but it should be an easier
> way to do this.
>
> I would appreciate your advice.
>
> Thank you,
>
> --
> Peter Afonin
Author
20 Sep 2006 4:55 AM
Peter Afonin
Yes, it is.

Peter

Show quoteHide quote
"Sean Chambers" <dko***@gmail.com> wrote in message
news:1158724240.953873.58790@e3g2000cwe.googlegroups.com...
> Is ViewState enabled for the treeview?
>
> Sean
>
> Peter Afonin wrote:
>> Hello,
>>
>> I've created a web application using Visual Studio 2005. I have a
>> treeview
>> control there. When the user expands it and clicks on the link, the
>> treeview
>> collapses automatically.
>>
>> Is it possible to keep it expanded to the level the user expanded it? In
>> other words, to keep the state of the treeview control between postbacks?
>> Of
>> course I can use frames or something like this, but it should be an
>> easier
>> way to do this.
>>
>> I would appreciate your advice.
>>
>> Thank you,
>>
>> --
>> Peter Afonin
>