This is a migrated thread and some comments may be shown as answers.

RAD Menu - problem showing children

5 Answers 190 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 03 Feb 2008, 02:18 PM
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

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 04 Feb 2008, 02:16 PM
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
0
Jim
Top achievements
Rank 1
answered on 12 Feb 2008, 11:20 PM
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>

0
Peter
Telerik team
answered on 14 Feb 2008, 01:37 PM
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
0
Miran Zgec
Top achievements
Rank 2
answered on 11 Mar 2008, 02:13 PM
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
0
David Northfield
Top achievements
Rank 1
answered on 04 Apr 2008, 09:53 AM

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
Tags
Menu
Asked by
Bruce
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jim
Top achievements
Rank 1
Miran Zgec
Top achievements
Rank 2
David Northfield
Top achievements
Rank 1
Share this question
or