This question is locked. New answers and comments are not allowed.
I have the following block of code to define two of my menu items:
Thanks!
items.Add()
.Text("<#= IsLocked ? \"Unlock\" : \"Lock\" #>")
.HtmlAttributes(new {@class = "grid-row-action-lock"})
.ImageUrl("~/Content/Common/Images/Icons/<#= IsLocked ? \"unlocked\" : \"locked\" #>.png")
.Action("_LockAjax", "Attribute", new {id = "<#= ID #>"});
items.Add()
.Enabled("<#= InUse ? false : true #>")
.Text("Recycle")
.HtmlAttributes(new {@class = "grid-row-action-delete"})
.ImageUrl("~/Content/Common/Images/Icons/recycle.png")
.Action("_DeleteAjax", "Attribute", new {id = "<#= ID #>"});
Thanks!