Problem with persisting state in cookie.

4 posts, 0 answers
  1. Adeel
    Adeel avatar
    3 posts
    Member since:
    Dec 2008

    Posted 11 Jun 2009 Link to this post


    I have implemented the radpanel bar, and using the "SPNavigationProvider" i SharePoint (MOSS 2007). I have set PersistStateInCookie to True in order to keep the menu in the right state when clicking on the links in the menu, but when I go to another site which doesn't have the rad panel bar, the panelbar on the page I left will be in the same state as I left when I open that site again. I want the menu to reset to default when I visit other sites. Is that possible?

    Another problem that I have is that the menu doesn't expand when I hyperlink from another site. It just stays the way it was. Is it possible to make the menu expand when I link to a "point" in the menu?

    Please advise :)

    This is my code

           <asp:SiteMapDataSource runat="server" ID="SPNavigationProvider" StartFromCurrentNode="true" ShowStartingNode="false"/>  

  2. Thomas
    Thomas avatar
    12 posts
    Member since:
    Apr 2009

    Posted 10 Jul 2009 Link to this post

    I am having the same SharePoint problem. I use the radpanel in the side quick launch. When a user selects a link from the top navigation the quick launch will always show that last item selected from there. (like top level item 1 sub item 4)

    My idea is to expire the cookie after 2-3 seconds. This way if they navigate to another page it wont show. If they refresh they lose the navigation as well. Not really the best method.. open to other suggestions.

  3. Paul
    Paul avatar
    4281 posts

    Posted 13 Jul 2009 Link to this post

    Hi there,

    You can use the approach shown in our PanelBar / Programmatic State Persistence example.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. Adeel
    Adeel avatar
    3 posts
    Member since:
    Dec 2008

    Posted 03 Sep 2009 Link to this post

    This sucks. I don't understand this.The least you could do was to give some instructions on how to manipulate the panelbar using code behind in SharePoint!!
Back to Top