More in this section

Forums / Bugs & Issues / Nested Masterpage Menu Problem

Nested Masterpage Menu Problem

3 posts, 1 answered
  1. Dawn
    Dawn avatar
    37 posts
    17 Sep 2012
    08 Oct 2011
    Link to this post
    I have a masterpage that contains a menu.
    I have subpage template (.master) that uses the masterpage as its base.
    The problem:

    The menu on the masterpage does not show up on the subpage template.

    What am I doing wrong?
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    06 Jul 2015
    11 Oct 2011
    Link to this post
    Hello Robert,

    The menu should be initialized outside the contentplaceholder. I have created a simple TreeMenu. In my parent masterpage I have:

    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="SitefinityWebApp.App_Master.Site1" %>
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.NavigationControls" TagPrefix="sfMap" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <head runat="server">
        <form id="form1" runat="server">
                <sfMap:SitefinitySiteMapDataSource runat="server" ID="SitefinitySiteMapDS" ShowStartingNode = "false"/>
            <telerik:RadTreeView ID="RTV" runat="server"  OnClientNodeExpanding="OnClientNodeExpanding" DataSourceID = "SitefinitySiteMapDS"></telerik:RadTreeView>
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

    Then I have created a nested masterpage in VS inheriting the parent masterpage.

    <%@ Master Language="C#" MasterPageFile="~/App_Master/Site1.Master" AutoEventWireup="true" CodeBehind="NestedMasterPage1.master.cs" Inherits="SitefinityWebApp.App_Master.NestedMasterPage1" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    Please find attached the video which presents the above scenario.

    Best wishes,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Dawn
    Dawn avatar
    37 posts
    17 Sep 2012
    16 Oct 2011
    Link to this post
    This worked really well. Thanks.
3 posts, 1 answered