Persist state during postback

2 posts, 0 answers
  1. Justin Hebert
    Justin Hebert avatar
    1 posts
    Member since:
    May 2010

    Posted 04 May 2010 Link to this post

    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.


    btw: I am using the PanelBar in Sharepoint.
  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 05 May 2010 Link to this post

    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!

    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.
Back to Top