Maintain treeview state

Discussion in 'ASP .Net Web Controls' started by Guy, Apr 5, 2007.

  1. Guy

    Guy Guest

    Hi newbie here with a problem,

    I have a Web.Sitemap XML document that defines the structure of my site, and
    with a SiteMapDataSource and a bog standard TreeView it all works great,
    apart from....

    Whenever I navigate to a different page the TreeView looses it's state and
    keeps reverting back to it's properties settings i.e. fully expanded etc.

    EnabledViewState is set to True so I don't know what else to do???

    Any help greatly appreciated!
     
    Guy, Apr 5, 2007
    #1
    1. Advertising

  2. Send your code..

    Sincerely yours,
    Michael B. Tkachev.


    "Guy" <> wrote in message
    news:...
    > Hi newbie here with a problem,
    >
    > I have a Web.Sitemap XML document that defines the structure of my site,
    > and with a SiteMapDataSource and a bog standard TreeView it all works
    > great, apart from....
    >
    > Whenever I navigate to a different page the TreeView looses it's state and
    > keeps reverting back to it's properties settings i.e. fully expanded etc.
    >
    > EnabledViewState is set to True so I don't know what else to do???
    >
    > Any help greatly appreciated!
    >
     
    Michael Tkachev, Apr 8, 2007
    #2
    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. Edwin Knoppert

    Maintain Treeview's expand states between pages

    Edwin Knoppert, Nov 7, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    604
    Edwin Knoppert
    Nov 7, 2005
  2. keithb

    How to maintain TreeView state

    keithb, Apr 24, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,454
    =?Utf-8?B?YnJpYW5zW01DU0Rd?=
    Apr 24, 2006
  3. keithb
    Replies:
    1
    Views:
    3,880
  4. Mel

    Treeview - Maintain last state?

    Mel, Jun 6, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    400
  5. Magnusb

    Maintain position in treeview?

    Magnusb, Mar 9, 2009, in forum: ASP .Net
    Replies:
    2
    Views:
    794
    Magnusb
    Mar 10, 2009
Loading...

Share This Page