Welcome Guest Search | Active Topics | Sign In | Register

SlideMenu.. Preserve state between pages? Options
MaWeRic
Posted: Monday, September 15, 2008 7:53:49 AM
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
eo_support
Posted: Monday, September 15, 2008 7:58:48 AM
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
MaWeRic
Posted: Tuesday, September 16, 2008 12:59:15 AM
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
eo_support
Posted: Tuesday, September 16, 2008 6:36:44 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.