This example shows how set the client-side template of a bound column. Templates allow you to customize the way the data is presented in the grid. Client-side templates are used in ajax and web service binding.
To set the client-side template use the ClientTemplate method. You can use <#= #> to embed databound expressions in a similar
way to server side templates
<%= Html.Telerik().Grid<Customer>()
.Name("Grid")
.Columns(columns =>
{
columns.Bound(c => c.CustomerID)
.ClientTemplate("<img alt='<#= CustomerID #>' src='"
+ Url.Content("~/Content/Grid/Customers/")
+ "<#= CustomerID #>.jpg' />")
.Title("Picture");
//omitted for brevity
}
%>