How to keep state of treeview control

Discussion in 'ASP .Net' started by Peter Afonin, Sep 20, 2006.

  1. Peter Afonin

    Peter Afonin Guest

    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
    Peter Afonin, Sep 20, 2006
    #1
    1. Advertising

  2. 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
    Sean Chambers, Sep 20, 2006
    #2
    1. Advertising

  3. Peter Afonin

    Peter Afonin Guest

    Yes, it is.

    Peter

    "Sean Chambers" <> wrote in message
    news:...
    > 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

    >
    Peter Afonin, Sep 20, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cnSoftware
    Replies:
    2
    Views:
    366
    Scott Allen
    Dec 11, 2004
  2. ton
    Replies:
    2
    Views:
    2,155
  3. Ionutz
    Replies:
    2
    Views:
    529
    Ionutz
    Oct 23, 2005
  4. Peter Afonin

    How to keep state of treeview control

    Peter Afonin, Sep 20, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    115
    Peter Afonin
    Sep 20, 2006
  5. hisan
    Replies:
    1
    Views:
    1,319
    Dan Stromberg
    Jun 25, 2012
Loading...

Share This Page