This is a migrated thread and some comments may be shown as answers.

persist expanded state when leaving page and returning

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 23 Jan 2010, 02:17 AM
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!

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 25 Jan 2010, 10:31 PM
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.
Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or