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

SubMenu doesn't not appear

2 Answers 74 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
IBST
Top achievements
Rank 1
IBST asked on 04 Apr 2011, 03:56 PM
Hello,

I have this code

@(Html.Telerik().Menu()

.Name(

 

"menu")

 

 

.OpenOnClick(

 

true)

 

 

.Items(menu =>

 

{

 

   menu.Add().Text(

 

"Home").Action("Products", "Home");

 

 

   menu.Add().Text(

 

"Products")

 

 

   .Items(item =>

 

   {

 

      item.Add().Text(

 

"Base module").Action("BaseModule", "Modules");

 

 

      item.Add().Text(

 

"Stocks").Action("Stocks", "Modules");

 

 

   });

 

}))

the result it's not what I expect. When I click on "Products" the Sub-Menu doen't appear...
what I'm doint wrong?

Regards
Paulo Aboim Pinto
Odivelas - Portugal

2 Answers, 1 is accepted

Sort by
0
Edgar Paulk
Top achievements
Rank 1
answered on 22 Jul 2011, 12:38 PM
Do you have Jquery Referenced on the page?

I have the same problem today, and it was that!

0
Dimo
Telerik team
answered on 22 Jul 2011, 12:44 PM
Hi Paulo,

Please check for JS errors and then take a look at:

http://www.telerik.com/help/aspnet-mvc/web-assets-working-with-javascript-web-assets.html#jQuery

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-troubleshooting.html#LoadOnDemand

Regards,
Dimo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Menu
Asked by
IBST
Top achievements
Rank 1
Answers by
Edgar Paulk
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or