More in this section
Forums / Developing with Sitefinity / Setting root node for PanelBar

Setting root node for PanelBar

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 1 answered
  1. TedH
    TedH avatar
    4 posts
    11 Apr 2008
    30 Mar 2010
    Link to this post
    We have a section of our site where we want to use the PanelBar for navigation. This nav element should only display a particular page and any pages below that. We don't want the entire site's navigation to display here.

    Is this possible?

    For example if our site is structured as below I'd want my panelbar to only show Page 3 and its children. I'm putting the panelbar in a template as it will look exactly the same on all pages from Page 3 on down.

    Page 1
        Page 1a
        Page 1b
    Page 2
        Page 2a
        Page 2b
    Page 3
        Page 3a
          Page 3a1
          Page 3a2
        Page 3b
          Page 3b1
          Page 3b2

    We're running SiteFinity 3.7.2057.1:0

  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    18 Jul 2012
    30 Mar 2010
    Link to this post
    set the property "StartFromCurrentNode" to true, and you can set StartingNodeOffset to -1 to show the parent of the current section you're on.

    make sure you're using the SitePanelBar usercontrol (found in /sitefinity/usercontrols/navigation35) or drop it from the toolbox (as opposed to just the plain RadPanelBar)

    I hope this was helpful!
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    30 Mar 2010
    Link to this post

    You can add the WebEditor that is shown below as  a property of the RadPanleBar

    [WebEditor("Telerik.Cms.Web.UI.UrlEditorWrapper, Telerik.Cms")]
    public string StartingNodeUrl
            return this.SiteMapDataSource1.StartingNodeUrl;
            this.SiteMapDataSource1.StartingNodeUrl = value;

    or build a custom control following the logic from this blog post

    Sincerely yours,
    Ivan Dimitrov
    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.
Register for webinar
3 posts, 1 answered