persist expanded state when leaving page and returning

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    42 posts
    Member since:
    Jan 2008

    Posted 22 Jan 2010 Link to this post

    Is it possible to persist the expanded state of a hierarchical grid when the user leaves the page and then returns at a later point?

    I've tried a few of the methods described in the forum related to hashtables and viewstates and I can't seem to get it to work.

    Basically we have a hierarchical grid with 3 levels that is contained within an updatepanel and that gets its data from OnNeedDataSource. The grid has links within it with which the user may navigate off of the page. But when they return we'd like to have them come back to the same expanded view they had originally without having to re-expand each of the levels.

    Any guidance would be much appreciated - thanks!
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 25 Jan 2010 Link to this post

    Have you tried the suggestions in this documentation article? It takes use of session state rather than view state and this should allow your users to navigate away from the page and then reload them. You could also look into the Saving grid settings on a per user basis article which goes over how to save and load specific users' settings.
Back to Top