This question is locked. New answers and comments are not allowed.
I have following code which generates nice MVC menu. However, I don't know how can I bind Controller and Action to menu. I have searched many forums, couldn't find answer.
Note : I am using my controller to produce menu from Database. I have column in my table for Controller and Action.
Note : I am using my controller to produce menu from Database. I have column in my table for Controller and Action.
<%= Html.Telerik().Menu() .Name("Menu") .Orientation(MenuOrientation.Vertical) .BindTo(Model.Where(x => x.ParentID == null).ToList(), mappings => { mappings.For<Dialog.Telstra.DataObject.Menu>(binding => binding .ItemDataBound((item, ParentMenu) => { item.Text = ParentMenu.Name; }) .Children(ParentMenu => ParentMenu.Menu1)); mappings.For<Dialog.Telstra.DataObject.Menu>(binding => binding .ItemDataBound((item, ChildMenu) => { item.Text = ChildMenu.Name; })); })%>