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

Persist state during postback

1 Answer 70 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Justin Hebert
Top achievements
Rank 1
Justin Hebert asked on 05 May 2010, 02:58 AM
I use the PanelBar for navigation to other pages, which triggers a postback - thereby resetting the state of the PanelBar. I would like the PanelBar to persist the collapse/expand state of its items regardless of postbacks. I have tried the various fixes such as setting the PreventCollapse property on Items, trapping expand events client-side, etc but been unsuccessful in retaining state. It appears the only way to persist state is to write some sort of custom state handler that uses a hidden input field? Any advice would be appreciated.

Thanks!
Justin

btw: I am using the PanelBar in Sharepoint.

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 05 May 2010, 10:04 AM
Hi Justin Hebert,

Have you tried setting the PanelBar's property PersistStateInCookie? I think, this solves your problem.
A sample project is attached.

Hope this will help you!


Regards,
Nikolay Tsenkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
PanelBar
Asked by
Justin Hebert
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or