This question is locked. New answers and comments are not allowed.
I am using the Menu in the _Layout.cshtml. When someone clicks on a particular Menu(Top Level) or MenuItem(submenu/dropdownmenu) i want certain Action on a given controller be called.
How can i specify that ?
@(Html.Telerik().Menu()
.Name("Menu")
.BindTo(Model, mappings =>
{
mappings.For<Accounts.MainMenu>(binding => binding
.ItemDataBound((item, mainMenu) =>
{
item.Text = mainMenu.MenuName;
//I would like to specify something like this
// item.Controller ="Controller Name"
// Item.Action = "Name of Action"
})
.Children(mainMenu => mainMenu.ChildMenus));
mappings.For<Accounts.ChildMenu>(binding => binding
.ItemDataBound((item, childMenu) =>
{
item.Text = childMenu.MenuName;
}));
})
)
How can i specify that ?
@(Html.Telerik().Menu()
.Name("Menu")
.BindTo(Model, mappings =>
{
mappings.For<Accounts.MainMenu>(binding => binding
.ItemDataBound((item, mainMenu) =>
{
item.Text = mainMenu.MenuName;
//I would like to specify something like this
// item.Controller ="Controller Name"
// Item.Action = "Name of Action"
})
.Children(mainMenu => mainMenu.ChildMenus));
mappings.For<Accounts.ChildMenu>(binding => binding
.ItemDataBound((item, childMenu) =>
{
item.Text = childMenu.MenuName;
}));
})
)