Here is the server-side template I've used. It results in an HTTP 500 error.
<%
= Html.Telerik().Grid(Model.notes)
.Name(
"Grid")
.Columns(columns =>
{
columns.Template(n =>
{
%>
<img alt="" src="<%= Url.Content("~/Content/images/") + AlertImage %>" />
<%
});
columns.Bound(n => n.Alert).Width(45);
columns.Bound(n => n.NoteTime).Format(
"{0:MM/dd/yyyy}").Width(100);
columns.Bound(n => n.Name).Width(100);
columns.Bound(n => n.NoteText).Width(400);
columns.Bound(n => n.Private).Width(45);
})
.Sortable()
.Render();
%>
I've attempted the same with client-side templates, specifying the type in the Telerik.Grid<> rather than performing the binding server-side and using .ClientTemplate. The client-side template simply displays the filename of the image (held in AlertImage) rather than using the <img> tag and interpreting the HTML.
Any help is appreciated.