Define a Template column for Telerik MVC Grid in Razor syntax
问题 I have the following legacy code that I would like to mimic, with all action links inside one column. However, I can't seem to get the Razor syntax right. How should I express this in Razor? The ASPX column template is like this: .Columns(column => { column.Template(o => {%> <%= Html.ActionLink("Edit", "Edit", new{ id = o.DeviceID}) %> | <%= Html.ActionLink("Delete", "Delete", new { id = o.DeviceID })%> <%}); I have only been able to get three separate columns using Razor without complaints