1-888-365-2779
+1-888-365-2779
Try Now
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
    Registered:
    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
    Registered:
    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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
                <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">
     
            </asp:ContentPlaceHolder>
        </div>
        </form>
    </body>
    </html>

    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">
    </asp:Content>

    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
    Answered
  3. Dawn
    Dawn avatar
    37 posts
    Registered:
    17 Sep 2012
    16 Oct 2011
    Link to this post
    This worked really well. Thanks.
3 posts, 1 answered