Currently changing projects over to core and the wrapper for context menus appears to be behaving differently:-
We initially add menu items disabled and then enable them as required in JS functions once the applicability of the menu items has been determined.
e.g.
.Items(items => { items.Add().Text("Complete") .HtmlAttributes(new { id = "CompleteID", title = "Complete" }) .Enabled(false); }
function EnableMenu(canComplete) { var menu = $("#@Model.HtmlID").data("kendoContextMenu"); menu.enable("#CompleteID", canComplete); }
This code works fine in the 2020 version of Kendo UI for ASP.NET MVC but not in the ASP.NET Core product.
The work around appears to be just to remove the .Enable(false) when creating the menu items and then the programmatic enabling/disabling works fine.
I couldn't see any documentation that indicated a change in behaviour so wanted to know if this an intentional change or a possible bug?