Class MenuList
Renders a menu list of top level items, useful for navigations that contain a top level menu displaying subtree's as clicked.
Implements
Inherited Members
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Web.WebControls.dll
Version: 11.20.7Syntax
public class MenuList : PageTreeData, IEnumerable<PageData>, IEnumerable, IPageSource, IPageControl, INamingContainer
Remarks
Use this control as a datasource to get child pages to currently selected subtree
Examples
Example usage of MenuList using a <xref href="EPiServer.Web.WebControls.PageTree" data-throw-if-not-resolved="false"></xref> to display subtree's through data binding.
<episerver:MenuList PageLink="<%#EPiServer.Core.PageReference.StartPage%>" runat="server" ID="MenuList1">
<ItemTemplate>
<episerver:property CssClass="NormalLink" PropertyName="PageLink" runat="server"/>
</ItemTemplate>
</episerver:MenuList>
Constructors
MenuList()
Initializes a new instance of the MenuList class.
Declaration
public MenuList()
Properties
ExpandNodeIfStartPage
Set this property to automatically select a page when on start page
Declaration
public PageReference ExpandNodeIfStartPage { get; set; }
Property Value
Type | Description |
---|---|
PageReference |
FooterTemplate
The default template for footer
Declaration
public ITemplate FooterTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
Remarks
Contained page will be the root page for the tree
HeaderTemplate
The default template for heading
Declaration
public ITemplate HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
Remarks
Contained page will be the root page for the tree
ItemTemplate
Template used for displaying items in the navigation bar
Declaration
public ITemplate ItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
SelectedTemplate
Template used for displaying selected items in the navigation bar
Declaration
public ITemplate SelectedTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
SeparatorTemplate
The template used between pages
Declaration
public ITemplate SeparatorTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
Remarks
No contained data
ShowRootPage
Declaration
public override bool ShowRootPage { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
CreateChildControls()
Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
Declaration
protected override void CreateChildControls()
Render(HtmlTextWriter)
Render this control to the output parameter specified.
Declaration
protected override void Render(HtmlTextWriter output)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.HtmlTextWriter | output | The HTML writer to write out to |