Static Fully Expanded Menu

3 posts, 0 answers
  1. Jeff Chellew
    Jeff Chellew avatar
    1 posts
    Member since:
    Feb 2010

    Posted 11 Feb 2010 Link to this post

    Hello. I'm using the Panelbar to display navigation on a MOSS 2007 website. I'm looking to use the panelbar without any expand function. Basically, when an end-user visits the site, the menu is fully expanded and shows the full page structure of the site. The menu will not collapse either. So I guess to put it simply, a static menu. Is this possible with Panelbar, and if so, what could do I need to get this functionality. Thanks!
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 12 Feb 2010 Link to this post

    The following markup should help you with this:

        <telerik:RadPanelBar ID="RadPanelBar1" runat="server"
            <Items> 
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1" Expanded="true" PreventCollapse="true"
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1"
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem2" Expanded="true" PreventCollapse="true"
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1"
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem3" Expanded="true" PreventCollapse="true"
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1"
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem4" Expanded="true" PreventCollapse="true"
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1"
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelBar> 

    The two properties you want use are "Expanded" and "PreventCollapse". Once you set these two to true you should have a static RadPanelBar :)


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 12 Feb 2010 Link to this post

    If your just showing the site structure why not use the RadSiteMap control instead. It can provide with the same rendering as the PanelBar with some tweaking done to the control's styles.
Back to Top