Menu subitems not showing from server

7 posts, 0 answers
  1. Ed Davis
    Ed Davis avatar
    4 posts
    Member since:
    Jun 2012

    Posted 23 Jul 2010 Link to this post

    I have the menu in a master page, it works fine locally on the dev box but once deployed to the server the subitems fail to display.

    <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Epike Apps</title>

        <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        </telerik:RadCodeBlock>
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript" language='javascript' src="<%=resolveurl("~/js/popupWin.js")%>"></script>
            <script language="javascript" type="text/javascript">
                function imgDisplaySwap(id, img) {
                    var pnl = document.getElementById(id);
                    var img = document.getElementById(img);
                    if (pnl == null) { return }
                    if (img == null) { return }
                    var expand = pnl.style.display == '';
                    pnl.style.display = (expand ? 'none' : '');
                    img.src = (expand ? '<%=resolveurl("~")%>images/right.gif' : '<%=resolveurl("~/images/down.gif")%>');
                }
                function popupAttach(id) {
                    var path;
                    path = '<%=resolveurl("~/")%>protected/workorders/WOUploadFile.aspx?id=' + id
                    var ret = OpenWindowModal(path, 500, 250, true);
                    return ret;
                }
                function OpenWindowModal(pstrUri, pintWidth, pintHeight, pblnReloadWindowAfter) {

                    var retVal = window.showModalDialog(pstrUri, window, "dialogWidth: " + pintWidth + "px; dialogHeight: " + pintHeight +

                "px; edge: Raised; status: No; scroll: Yes; resizable: Yes; center: Yes; help: No;");

                    if (pblnReloadWindowAfter && retVal == "REFRESH") {
                        return true;
                    }
                    else {
                        return false;
                    }
                }
                function CloseWindow()
                {
                    var oWindow = GetRadWindow();  //Obtaining a reference to the current window
                    oWindow.Close();
                }
                function GetRadWindow()
                {
                   var oWindow = null;
                   if (window.radWindow) oWindow = window.radWindow;
                   else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                   return oWindow;
                }

                function SuccessUpload() {
                    alert("File was successfully uploaded.");
                    CloseWindow();
                }
                
            </script>
            <asp:ContentPlaceHolder id="head" runat="server">
            </asp:ContentPlaceHolder>
            <link type="text/css" rel="Stylesheet" href="<%=resolveurl("~/css/master.css") %>" />

        </telerik:RadCodeBlock>    

    </head>
    <body runat="server" id="body">
        <form id="form1" runat="server">
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>

    <div id="masterHeader">
        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/epikeappslogoWhite.png" />
        <div>
          <asp:Label ID="lblLogin" runat="server" Text=""></asp:Label>   
        </div>
    </div>
    <div id="masterSecondary">
        <div id="masterNav">
            <a href="<%=resolveurl("~/default.aspx") %>">
                <img height="151" alt="" src="<%=resolveurl("~/images/epike_01.gif")%>" width="153" border="0" />
            </a>
            <div id="masterNavWrapper">
                <asp:LinqDataSource ID="ldsMainNav" runat="server"
                    ContextTypeName="SkywardDataContext" TableName="info_Navigations"
                    OrderBy="NavOrder, displayText" Where="GroupName == @GroupName">
                    <WhereParameters>
                        <asp:Parameter DefaultValue="appsMain" Name="GroupName" Type="String" />
                    </WhereParameters>
                </asp:LinqDataSource>        
                <telerik:RadMenu ID="rmMainNav" runat="server" DataFieldID="id"
                            DataFieldParentID="parentid" DataNavigateUrlField="url"
                            DataSourceID="ldsMainNav" DataTextField="displayText"
                        DataValueField="value" BorderStyle="None"
                        Flow="Vertical" Font-Names="Verdana" CssClass="radNav"
                    EnableEmbeddedSkins="False">
                </telerik:RadMenu>
                <telerik:RadMenu ID="RadMenu1" Runat="server" DataFieldID="id"
                    DataFieldParentID="parentid" DataNavigateUrlField="url"
                    DataSourceID="ldsMainNav" DataTextField="displayText" DataValueField="value"
                    Skin="Default">
                </telerik:RadMenu>
            </div>
        </div>
        <div id="masterContent">
            <div>
                <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

                </asp:ContentPlaceHolder>
            </div>
        </div>
    </div>



        </form>
    </body>
    </html>

    html,body
    {
        width:100%;
        margin:0px;
    }

    #masterHeader
    {
        background-color:#990000;
        float:left;
        width:100%;
        height:60px;
        min-width:1000px;
    }

    #masterSecondary
    {
        /*background-color:white;*/
        float:left;
        clear:both;
        width:100%;
        min-width:1000px;
    }

    #masterContent
    {
        /*background-color:blue;*/
        float:left;
        width:auto;
        min-width:825px;
        max-width:80%;
        margin-top:10px;
    }

    #masterHeader img
    {
        margin:10px 0px 0px 220px;
    }

    #masterHeader div
    {
        background-color:#990000;
        margin:20px 20px 0px 0px;
        *margin:-30px 20px 0px 0px; /*IE hack*/
        text-align:right;
        color:White;
        float:right;
        width:400px;
    }



    #masterContent > div
    {
        /*background-color:green;*/
        margin:0px 10px 10px 10px;
    }

    #masterNav
    {
        background-color:#990000;
        float:left;
        clear:left;
        width:175px;
        margin-top:-60px;
    }

    #masterNav img
    {
        margin:5px 0px 20px 5px;
    }

    a
    {
        outline:none;
    }
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 Jul 2010 Link to this post

    Hi Ed,

    Do you have a live url of the issue?

    Kind regards,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 28 Sep 2010 Link to this post

    Having the exact same problem:
    I have the menu in a master page, it works fine locally on the dev box but once deployed to the server the subitems fail to display.

    Both ie8 and in compatibility view. Also affects Firefox.
    Works ok in Chrome..
  4. Yana
    Admin
    Yana avatar
    5044 posts

    Posted 29 Sep 2010 Link to this post

    Hi Nicolai,

    The provided information is not enough for us to reproduce this issue. Please send us live url where the problem can be observed.

    Kind regards,
    Yana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 29 Sep 2010 Link to this post

    Hello,

    yes, I got a similar response in the support ticket I created.
    But, by the time the response came, the issue "went away".

    What I did was, (among 50 other things), update Telerik files in Bin folder, remove and recreate the app in IIS. Restart the web app in IIS... I suspect it's an iis related bug, that has something to do with app pool picking up the wrong files... 
    Really not sure.. Weird, since it only happened when it got to the we server, and affected all browsers except chrome...
  6. Alejandro Quezada
    Alejandro Quezada avatar
    2 posts
    Member since:
    Nov 2009

    Posted 14 Oct 2010 Link to this post

    Hi, i have the same issue, this is the live url 

    This is my code from master page
       
    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Covidien.master.cs" Inherits="MedicionDesempenio.Covidien" %>
     
    <!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>
        <asp:ContentPlaceHolder ID="head" runat="server">
        </asp:ContentPlaceHolder>
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"  />
        <link href="css/style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            //Put your Java Script code here.
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            UpdatePanelsRenderMode="Inline" EnableAJAX="False">
        </telerik:RadAjaxManager>
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Windows7">
        </telerik:RadSkinManager>
        <table width="950" align="center" border="0" cellpadding="0" cellspacing="0">
            <tbody>
                <tr>
                    <td colspan="3">
                        <object width="950" height="200">
                            <param name="movie" value="<%Response.Write(ResolveUrl("~/resources/menu_home.swf")); %>">
                            <embed src="<%Response.Write(ResolveUrl("~/resources/menu_home.swf")); %>" width="950"
                                height="200">
    </embed>
                        </object>
                    </td>
                </tr>
                <tr>
                    <td width="550" height="20" nowrap="nowrap">
                        <telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="RadSiteMapDataSource1"
                            DataFieldID="Url" DataNavigateUrlField="Url" DataTextField="Title" DataValueField="Url"
                            Skin="Windows7">
                        </telerik:RadMenu>
                        <telerik:RadSiteMapDataSource ID="RadSiteMapDataSource1" runat="server" SiteMapFile="Web.sitemap"
                            ShowStartingNode="False" />
                    </td>
                    <td width="500" nowrap="nowrap">
                       <asp:Label runat="server" ID="lblUser" CssClass="titulo_blue"  Text=""></asp:Label>
                    </td>
                    <td width="5">
                        <img src="images/spacer.gif" width="20" height="1">
                    </td>
                </tr>
                <tr>
                    <td valign="top" colspan="2">
                        <table width="100%" style="height:700px;" border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                                <tr >
                                     
                                    <td width="95%" valign="top">
                                        <div>
                                            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                                            </asp:ContentPlaceHolder>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" background="images/footer_r3_c2.jpg" height="65">
                        <table width="459" align="center" border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                                <tr>
                                    <td>
                                        <div class="text_tipo7" align="center">
                                           
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        </form>
    </body>
    </html>


    I am using a Web.sitemap file as provider. This works fine locally and in dev server, but on the test server dont show subitems.


    Thank You.
  7. Alejandro Quezada
    Alejandro Quezada avatar
    2 posts
    Member since:
    Nov 2009

    Posted 15 Oct 2010 Link to this post

    I solved this adding in web.config file under system.webserver handlers section

    <remove name="ScriptResource" />
                    <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                 

    And EnableScriptCombine="false" in RadScriptManager on the master page file

    <telerik:RadScriptManager ID="RadScriptManager1"  EnableScriptCombine="false"  runat="server">


    This is my web.config file

    <?xml version="1.0" encoding="UTF-8"?>
    <!--
        Note: As an alternative to hand editing this file you can use the
        web admin tool to configure settings for your application. Use
        the Website->Asp.Net Configuration option in Visual Studio.
        A full list of settings and comments can be found in
        machine.config.comments usually located in
        \Windows\Microsoft.Net\Framework\v2.x\Config
    -->
    <configuration>
        <appSettings>
            <add key="Telerik.Skin" value="Windows7" />
            <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
            <add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
        </appSettings>
      <connectionStrings>
      <add name="CovidienEntities" connectionString="metadata=res://*/DesempenioAppModel.csdl|res://*/DesempenioAppModel.ssdl|res://*/DesempenioAppModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=xxxx;Initial Catalog=xxxxx;Persist Security Info=True;User ID=xxxx;Password=xxxx;MultipleActiveResultSets=True""
       providerName="System.Data.EntityClient" />
     
     
        <add name="CatalogosEntities" connectionString="metadata=res://*/ModeloCatalogos.csdl|res://*/ModeloCatalogos.ssdl|res://*/ModeloCatalogos.msl;provider=System.Data.SqlClient;provider connection string="Data Source=xxx;Initial Catalog=Desempenio;Persist Security Info=True;User ID=sa;Password=xxxx;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
      </connectionStrings>
        <system.web>
            <!--
                Set compilation debug="true" to insert debugging
                symbols into the compiled page. Because this
                affects performance, set this value to true only
                during development.
            -->
            <compilation debug="false" targetFramework="4.0">
                <assemblies>
                    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                    <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                    <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                    <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /></assemblies>
                <buildProviders>
                     
                </buildProviders>
            </compilation>
            <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
                <controls>
                    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
                </controls>
            </pages>
            <!--
                The <authentication> section enables configuration
                of the security authentication mode used by
                ASP.NET to identify an incoming user.
            -->
        <authentication mode="Forms">
     <forms loginUrl="Login.aspx" name="authticket" timeout="20" path="/" />
    </authentication>
    <authorization>
     <deny users="?" />
    </authorization>
            <!--
                The <customErrors> section enables configuration
                of what to do if/when an unhandled error occurs
                during the execution of a request. Specifically,
                it enables developers to configure html error pages
                to be displayed in place of a error stack trace.
    -->
     
            <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
                    <httpHandlers>
     <remove verb="*" path="*.asmx"/>
           <add verb="*" path="*.asmx" validate="false"  preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
           <add verb="*" path="*_AppService.axd" validate="false"  preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
           <add verb="GET,HEAD" path="ScriptResource.axd"  preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
        
                <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" validate="false" />
                <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" validate="false" />
                <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />
                <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" validate="false" />
                <add path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode"  verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
             
            </httpHandlers>
            <httpModules>
                <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
                <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
            </httpModules>
        </system.web>
        <!--
            The system.webServer section is required for running ASP.NET AJAX under Internet
            Information Services 7.0.  It is not necessary for previous version of IIS.
     -->
     
     
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false" />
            <modules>
                <remove name="RadUploadModule" />
                <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0" />
                <remove name="RadCompression" />
                <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0" />
            <remove name="ScriptModule" />
           <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        
            </modules>
            <handlers>
                <remove name="ChartImage_axd" />
                <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
                <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
                <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
                <remove name="Telerik_Web_UI_DialogHandler_aspx" />
                <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
                <remove name="Telerik_RadUploadProgressHandler_ashx" />
                <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
                <remove name="Telerik_Web_UI_WebResource_axd" />
                <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
                                                          <remove name="ScriptResource" />
                    <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
                 
            </handlers>
    </system.webServer>
       <location path="WebResource.axd"
          <system.web
            <authorization
              <allow users="*" /> 
            </authorization
          </system.web
        </location
        <location path="ScriptResource.axd"
          <system.web
         <authorization
             <allow users="*" /> 
           </authorization
         </system.web
       </location
       <location path="Telerik.Web.UI.WebResource.axd"
         <system.web
           <authorization
             <allow users="*" /> 
           </authorization
         </system.web
       </location>   
     
    </configuration>

    My hosting provider using IIS 7 with windows server 2008.
Back to Top