RAD Menu - problem showing children

6 posts, 0 answers
  1. Bruce
    Bruce avatar
    33 posts
    Member since:
    Oct 2006

    Posted 03 Feb 2008 Link to this post

    I know it's something "stupid", but I can't get a simple menu to work.  The "root" appears, but no "children" show up.  Here's the web page:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestMenu.aspx.vb" Inherits="TestMenu" %>
    <%@ 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 runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
          <telerik:radscriptmanager id="RadScriptManager1" runat="server"></telerik:radscriptmanager>
        </div>
          <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Horizontal" Skin="Default2006">
            <DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" />
            <CollapseAnimation Duration="200" Type="OutQuint" />
            <Items>
              <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Root RadMenuItem1">
                <Items>
                  <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Child RadMenuItem 1">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Child RadMenuItem 2">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                  </telerik:RadMenuItem>
                </Items>
                <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
              </telerik:RadMenuItem>
              <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Root RadMenuItem2">
                <Items>
                  <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Child RadMenuItem 1">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                  </telerik:RadMenuItem>
                  <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Child RadMenuItem 2">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                  </telerik:RadMenuItem>
                </Items>
                <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
              </telerik:RadMenuItem>
            </Items>
            <ExpandAnimation Type="OutQuart" />
          </telerik:RadMenu>
        </form>
    </body>
    </html>

    code behiind:

    Partial

    Class TestMenu

    Inherits System.Web.UI.Page

    End

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 04 Feb 2008 Link to this post

    Hello Bruce,

    If you are using Telerik RadScriptManager, please, make sure that you register the web resources required by telerik controls. The easiest way to do this is to use the smart tag as show in the attached screenshot. The Web.config file will be modified as follows:

    Web.config
    <httpHandlers>    
          <remove path="*.asmx" verb="*" />    
             
          *  *  *     
        
        <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2007.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"    
            validate="false" />    
        </httpHandlers>    
     


    Let us know how it goes.


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jim
    Jim avatar
    1 posts
    Member since:
    Feb 2008

    Posted 12 Feb 2008 Link to this post

    I have the same problem.  I do have the RadScriptManager listed in the web.config as you've shown.  I must be doing something really dumb, is there anything else you can think of?  Here is my aspx:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadTest.aspx.cs" Inherits="Test.RadTest" %>

    <%@ Register Assembly="Telerik.Web.UI, Version=2007.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
        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 runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            </telerik:RadScriptManager>
        <div>       
            <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Horizontal" Skin="Default2006">
                <DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical"></DefaultGroupSettings>

                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                <Items>
                <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Main1">
                <GroupSettings ExpandDirection="Auto" Flow="Vertical"></GroupSettings>
                <Items>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Facilities">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical"></GroupSettings>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Personnel">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical"></GroupSettings>
                    </telerik:RadMenuItem>
                </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Main2">
                <Items>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Child1">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical"></GroupSettings>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Child2">
                    <GroupSettings ExpandDirection="Auto" Flow="Vertical"></GroupSettings>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Child3">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                </Items>
                <GroupSettings ExpandDirection="Auto" Flow="Vertical"></GroupSettings>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Main3">
                <GroupSettings ExpandDirection="Auto" Flow="Vertical"></GroupSettings>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Main4">
                <GroupSettings ExpandDirection="Auto" Flow="Vertical"></GroupSettings>
                </telerik:RadMenuItem>
                </Items>

                <ExpandAnimation Type="OutQuart"></ExpandAnimation>
            </telerik:RadMenu>
           
       
        </div>
        </form>
    </body>
    </html>

  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Feb 2008 Link to this post

    Hi Bruce,

    There is a troubleshooting topic on:

    Error message “’Telerik’ is undefined” when running a web site on Windows Vista IIS 7 Integrated mode 

    Could you please review it and check if your problem is related to it?


    Best wishes,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Miran Zgec
    Miran Zgec avatar
    14 posts
    Member since:
    Oct 2006

    Posted 11 Mar 2008 Link to this post

    hello,

    I'm having the same problem. The menu just won't show subitems... only top level
    I checked all the issues listed in troubleshooting guide, but non of them are the case...

    Any suggestions?
    oh ... and I'm using Prometheus q3 2007
  7. David Northfield
    David Northfield avatar
    1 posts
    Member since:
    Mar 2007

    Posted 04 Apr 2008 Link to this post

    I have just experienced the same problem, and solved it.

    It turned out that the project I was working in was an asp.net 2.0 with no Ajax. I added all the extra bits to the web.config file and the menu started working perfectly. What gave me a clue was that I was getting JS errors saying Sys was undefined.

     

    Hope this helps someone
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017