This question is locked. New answers and comments are not allowed.
I'm trying to host a menu control within a cell of a telerik grid where the sub menu can change based on values in the row.
I've gotten the menu control hosted correctly.
But I'm trying to figure out how to change menu on a per row basis.
This is what I'm attempting but failing
Is this possible mixing the Grid and Menu?
I've gotten the menu control hosted correctly.
But I'm trying to figure out how to change menu on a per row basis.
This is what I'm attempting but failing
if ( Model.WorkflowStatusName == "StatusX") { Html.Telerik().Menu() .Name("Menu_<#=Id #>").HtmlAttributes(new { style = "z-order:100000000" }) .Orientation(MenuOrientation.Vertical) .Items(menu => menu.Add().Text("Actions") .Items(sub => { sub.Add().Text("Edit").HtmlAttributes(new { workItemId = "<#= Id #>", action = "Edit" }); }) ) .ClientEvents(e =>e.OnSelect("OnSelect")) .ToHtmlString();} else { Html.Telerik().Menu() .Name("Menu_<#=Id #>").HtmlAttributes(new { style = "z-order:100000000" }) .Orientation(MenuOrientation.Vertical) .Items(menu => menu.Add().Text("Actions") .Items(sub => { sub.Add().Text("Complete").HtmlAttributes(new { workItemId = "<#= Id #>", action = "Complete" }); }) ) .ClientEvents(e => e.OnSelect("OnSelect")) .ToHtmlString();}Is this possible mixing the Grid and Menu?