More in this section

Forums / Developing with Sitefinity / PanelBar ParentItems to remain expanded

PanelBar ParentItems to remain expanded

2 posts, 0 answered
  1. Smitha
    Smitha avatar
    22 posts
    29 Oct 2008
    03 Mar 2009
    Link to this post

    Below is the structure of my sitemap

    AboutUS [Level1]
    --Page One [Leve2]
    ----Page A [Leve3]
    ------Page 1 [Leve4]
    ------Page 2 [Leve4]
    ----Page B [Leve3]
    ----Page C [Leve3]

    I am using the PanelBar for my right nav and changed couple of proerties of PanelBar control to display the panel bar from Leve 2 and it works fine when I am on Page One.

    The Problem is when i navigate to Page A it only displays the child elements of Page A i.e Page 1 & Page 2. But my requirement is to show the right nav as it was when I was in Page one in expanded mode. How do I achieve this?
    Please help.

  2. Ivan
    Ivan avatar
    478 posts
    16 Jun 2015
    03 Mar 2009
    Link to this post
    Hi Smitha,

    it would appear that you have set the property "StartFromCurrentNode" to true or have used offset property to determine where the panel bar should start from (not that offset property is dynamic and will change based on the current page).

    It seems that to achieve your desired functionality you will need to modify the SitePanelBar control a bit. The user control for this control is located at this location:

    You could for example implement a new property there and name it "RootPage" and then change the databinding logic in such a way that it always starts from the page that has been designated by the end user as RootPage.

    I hope you'll find this information helpful. Let us know if there is anything else we can do for you.

    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.
2 posts, 0 answered