This question is locked. New answers and comments are not allowed.
Hi all,
Let's say I declare menu in this way, other than I add menu item by using item.Add().Text("Menu Item Name").Url("aaa"); to specify Url directly, is there a way I can specify controller and action name instead?
Let's say I declare menu in this way, other than I add menu item by using item.Add().Text("Menu Item Name").Url("aaa"); to specify Url directly, is there a way I can specify controller and action name instead?
<%
Html.Telerik().Menu()
.Name(
"MainMenu"
)
})
.Items(items =>
{
items.Add().Text(
"Root 1"
)
.Items(item =>
{
item.Add().Text(
"Sub 1 - 1"
);
item.Add().Text(
"Sub 1 - 2"
);
});
items.Add().Text(
"Root 2"
)
.Items(item =>
{
item.Add().Text(
"Sub 2 - 1"
);
item.Add().Text(
"Sub 2 - 2"
);
});
}).Render();
%>
Thanks
Hardy