Try Now
More in this section

Forums / General Discussions / Site Panelbar

Site Panelbar

2 posts, 0 answered
  1. Sasa
    Sasa avatar
    17 posts
    24 Aug 2007
    27 May 2008
    Link to this post

    Is there a way to make Site Panelbar expanded by default beyond 1st level?

    I have something like this:

        -LEVEL 1
            -LEVEL 2
        -LEVEL 1
            -LEVEL 2
            -LEVEL 2
        -LEVEL 1

    I would like to have site panel bar expand all these levels by default, not just level1 as it does now.
  2. Pepi
    Pepi avatar
    981 posts
    20 Oct 2016
    28 May 2008
    Link to this post
    Hello Sasa,

    You need to modify ~/Sitefinity/UserControls/Navigation/SitePanelbar.ascx control as follows:

    <script type="text/javascript"
       function ExpandAllItems() 
           var PanelBar = <%= RadPanelbar1.ClientID %>
            for (var i=0; i<PanelBar.AllItems.length; i++) 
                  var panelItem = PanelBar.AllItems[i]; 
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false"/> 
    <radP:RadPanelbar ID="RadPanelbar1" runat="server" OnClientLoad="ExpandAllItems"  DataSourceID="SiteMapDataSource1" OnItemDataBound="RadPanelbar1_ItemDataBound" EnableViewState="false"

    Hope this helps.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered