This question is locked. New answers and comments are not allowed.
Hi
I have started a new telerik mvc project in visula studio and added a menu control in a view. I also have a menu control in the master page.
The code for the master page is the standard one that comes with a new telerik project
<div class="page">
<header>
<div id="title">
<h1>My MVC Application</h1>
</div>
@(Html.Telerik().Menu()
.Name("menu")
.Items(menu => {
menu.Add().Text("Home").Action("Index", "Home");
menu.Add().Text("About").Action("About", "Home");
}))
</header>
<section id="main">
@RenderBody()
</section>
<footer>
</footer>
</div>
I have copied and pasted the code for the menu above (starting with @(html.) into an view in my project.
when i run the project and navigate to the view the menu is there but does nothing - no hver effect no sub menu drop down.
could anyone help to as where im going wrong please?
here is the code for the view
@{
ViewBag.Title = "Home Page";
}
<h2>@ViewBag.Message</h2>
@(Html.Telerik().Menu()
.Name("menu")
.Items(items =>
{
items.Add().Text("Parent 1").Items(sub1 =>
{
sub1.Add().Text("About").Url("Home/About");
});
items.Add().Text("Parent 2");
}))
thanks in advance
I have started a new telerik mvc project in visula studio and added a menu control in a view. I also have a menu control in the master page.
The code for the master page is the standard one that comes with a new telerik project
<div class="page">
<header>
<div id="title">
<h1>My MVC Application</h1>
</div>
@(Html.Telerik().Menu()
.Name("menu")
.Items(menu => {
menu.Add().Text("Home").Action("Index", "Home");
menu.Add().Text("About").Action("About", "Home");
}))
</header>
<section id="main">
@RenderBody()
</section>
<footer>
</footer>
</div>
I have copied and pasted the code for the menu above (starting with @(html.) into an view in my project.
when i run the project and navigate to the view the menu is there but does nothing - no hver effect no sub menu drop down.
could anyone help to as where im going wrong please?
here is the code for the view
@{
ViewBag.Title = "Home Page";
}
<h2>@ViewBag.Message</h2>
@(Html.Telerik().Menu()
.Name("menu")
.Items(items =>
{
items.Add().Text("Parent 1").Items(sub1 =>
{
sub1.Add().Text("About").Url("Home/About");
});
items.Add().Text("Parent 2");
}))
thanks in advance