|
Rank: Member Groups: Member
Joined: 8/16/2008 Posts: 15
|
Hi! Is it possible to preserve state of expanded groups between pages? I found a StateCoookie but had no effect filling in a CookieName in that property.
Thanks // Henrik
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
Make sure you set the slide menu's SaveStateCrossPages property to true and the slide menu has the same ID and at the same location of the control tree in both pages (thus having the same ClientID). SlideMenu uses ClientID to match the state data.
Thanks
|
|
Rank: Member Groups: Member
Joined: 8/16/2008 Posts: 15
|
Hi ... Works .. but ..
In form_load I have a function wich sets the current sub-item as selected. After I set SaveStateAcrossPages = true ... this does not work anymore.
Do I have to set item as selected in another event than Form_Load?
//h
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hum....I am not sure why you want to do that together with SaveStateCrossPages. Usually you would use SaveStateCrossPages when you do not want to set the state manually. As for the selected item, you can also set the slide menu's AutoSelectSource to NavigateUrl and AutoSelectTarget to Path. That way the slide menu will automatically set the selected item for you.
Thanks!
|
|