I have Kendo menu with actions:
@(Html.Kendo().Menu().Name("menu")
.Items(it => {
it.Add().Text("Item1").Items(subit => {
subit.Add().Text("subitem1).Action("Contracts", "Home");
subit.Add().Text("subitem2").Action("Contracts", "Home",
new { flag = true });
});
})
)
My problem is that whenever I select subitem1
or subitem2
the items get both selected (class .k-state-selected
added to both items).
I guess that it happens because I have the same controller actions. I wouldn't like to create separate action for subitem2
. Is there any workaround?
Thanks a lot!