This question is locked. New answers and comments are not allowed.
I have an admin console template and I'm trying to emulate the menu using the Telerik Menu extension but I can't quite get there.
Here's what I'm trying to achieve. This is the original HTML template code.
I've attached a picture of what the menu is supposed to look like, and what I've been able to get it to do.
Here's how far I've gotten.
In order to get the styling working just right, I need to get the "<span><span>" and the "</span></span>" elements in wrapped around the name of the link.
I'll also need to know how to get the "Selected" attribute working based on the selection of any particular menu item.
I'm getting to think it may not be possible, but any help would be appreciated.
Thanks.
Here's what I'm trying to achieve. This is the original HTML template code.
<div id="main_menu"> <ul> <li> <a href="#" class="selected"><span><span>Dashboard</span></span></a> <ul> <li><a href="#" class="selected"><span><span>Secondary Menu1</span></span></a></li> <li><a href="#"><span><span>Latest Orders1</span></span></a></li> <li><a href="#"><span><span>Quick Settings1</span></span></a></li> <li><a href="#"><span><span>Selected Item1</span></span></a></li> </ul> </li> <li> <a href="#"><span><span>Store Settings</span></span></a> </li> <li> <a href="#"><span><span>Order Management</span></span></a> </li> <li><a href="#"><span><span>UserAccounts</span></span></a></li> <li><a href="#"><span><span>Catalog</span></span></a></li> <li><a href="#"><span><span>Promotions</span></span></a></li> <li><a href="#"><span><span>Static Pages</span></span></a></li> <li><a href="#"><span><span>Item Mouseover</span></span></a></li> <li><a href="#"><span><span>Press</span></span></a></li> </ul></div>I've attached a picture of what the menu is supposed to look like, and what I've been able to get it to do.
Here's how far I've gotten.
<% Html.Telerik().Menu().Name("main_menu") .Items(menu => { menu.Add().Text("Dashboard").Action("Index", "Home") .LinkHtmlAttributes(new{ @class = "selected"}) .Items(item => { item.Add().Text("Secondary Menu1").Action("Second", "Home"); item.Add().Text("Settings").Action("Settings", "Home"); }); }).Render(); %>In order to get the styling working just right, I need to get the "<span><span>" and the "</span></span>" elements in wrapped around the name of the link.
I'll also need to know how to get the "Selected" attribute working based on the selection of any particular menu item.
I'm getting to think it may not be possible, but any help would be appreciated.
Thanks.