This question is locked. New answers and comments are not allowed.
Hi,
I am trying to set the Selected property of a menu item like so, but it is not working. Is it possible to detect the controller and select the menu item?
Thank you,
David A.
I am trying to set the Selected property of a menu item like so, but it is not working. Is it possible to detect the controller and select the menu item?
Thank you,
David A.
@{ Html.Telerik().Menu()
.Name("Menu")
.Items(menu =>
{
menu.Add()
.Text("Profile").ImageUrl("~/Images/profile36.png")
.Action("Edit", "Profile")
.Selected(ViewContext.Controller is ProfileController);
}).Render();
}