Look at this example code, from a Telerik MVC grid:
<% Html.Telerik().Grid(Model.InstallerList)
.Name("InstallerGrid")
.DataKeys(key => key.Add(c => c.InstallerID))
.Columns(column =>
{
column.Template(action =>
{%>
<%= Html.ActionLink("Edit", "Edit", new{ id = action.InstallerID}) %>
<%});
column.Bound(model => model.CompanyName);
column.Bound(model => model.EmailAddress);
})
.Scrollable(scrolling => scrolling.Enabled(true))
.Pageable(paging => paging.Enabled(true))
.Sortable(sorting => sorting.Enabled(true))
.Render(); %>
Now, what is better about that than doing it like this:
<%
var grid = Html.Telerik().Grid(Model.InstallerList);
grid.Name("IntsallerGrid");
grid.DataKeys(key => key.Add(c => c.InstallerID));
// etc. etc.
%>