RadMenu for ASP.NET

The control renders as bullet list / Error: 'RadMenu' is undefined Send comments on this topic.
See Also
Controlling the visual appearance > Trouble shooting > The control renders as bullet list / Error: 'RadMenu' is undefined

Glossary Item Box

Symptoms

The following are two different problems which have the same solution:

  • Telerik RadMenu is rendered as bullet list (also known as unordered list represented by the UL HTML tag). If for some reason the base CSS file of Telerik RadMenu is not loaded your menu would be displayed as a regular unordered list.
  • On page load you get Error: 'RadMenu' is undefined, where RadMenu is the client ID of the menu.

menu undefined error

Solution

If you are using ASP.NET 2.0 that base style sheet file is served as a web resource. If the web resource handler - webresource.axd - is not properly registered the base css file will not be served to the client. Please try the following:

  1. Open the IIS management snap-in (e.g. run inetmgr.exe)
  2. Right-click your website and choose properties
  3. Go to the "Home Directory" tab and click the "Configuration" button
  4. A dialog should pop out and you would see the mappings listbox
  5. Find the entry for the ".axd" extension and edit it by clicking the "Edit" button
  6. In the new dialog uncheck the "Verify if file exist" check box if it is checked.


 

For the problem when you get Error: 'RadMenu' is undefined you may try an alternative solution and set the UseEmbeddedScripts property to false. This forces the menu not to use embedded web resources but fetch them from the RadConrols folder of the application.

  Copy Code
<rad:RadMenu ID="RadMenu1" UseEmbeddedScripts="False" runat="server">

 

See Also