This is a migrated thread and some comments may be shown as answers.

Static Fully Expanded Menu

2 Answers 63 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jeff Chellew
Top achievements
Rank 1
Jeff Chellew asked on 11 Feb 2010, 02:01 PM
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 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 12 Feb 2010, 04:20 PM
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 :)


0
robertw102
Top achievements
Rank 1
answered on 12 Feb 2010, 07:17 PM
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.
Tags
PanelBar
Asked by
Jeff Chellew
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
robertw102
Top achievements
Rank 1
Share this question
or