Hi
I have created Kendo menu using Model binding and set the Area as shown below
@(Html.Kendo().Menu()
.Name("menu")
.BindTo(Model,mp=>
{
mp.For<MyModel>(binding => binding
.ItemDataBound((item, main) => {
item.Text = main.FormName;
if (main.ActionName != "")
{
item.Action(main.ActionName, main.ControllerName, new { area = main.AreaName });
// item.ActionName = main.ActionName;
// item.ControllerName = main.ControllerName;
}
})
.Children(main => main.Children));
})
)
Menus are loaded correctly with 2 levels and the actions are invoked from respective areas correctly. However for the parent node default action is set. Parent node is not assigned any action.
When Area is removed, the parent node does not have action. When setting area, parent node also gets Href
Warm Regards,
Veeralakshmi Jeyavelu