This example shows how to use a templated column to add "Edit" and "Delete" buttons inside Telerik Grid for ASP.NET MVC. Templates allow you to customize the way the data is presented in the grid.
To set the template for a column you should use the overload of the Add method which accepts Action<T>.
<%
Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Add(c => c.CustomerID).Width(80);
columns.Add(c => c.ContactName);
columns.Add(c => c.Country).Width(90);
columns.Add(c => c.Address).Width(200);
columns.Add(c =>
{
%>
<%= Html.ActionLink("Edit", "Editing", new { id = c.CustomerID },
new { @class="t-link action-edit" }) %>
<%= Html.ActionLink("Delete", "Delete", new { id = c.CustomerID },
new { @class = "t-link action-delete" }) %>
<%
});
})
.Render();
%>