|
<system.web>
<httpRuntime requestValidationMode="2.0" />
<pages validateRequest="false"/>
</system.web> |
|
<script type="text/template" id="Template">
<a rel='nofollow' href='market.aspx?id={{:id}}'>{{:name}}</a>
</script>
@(Html.EJ().Grid<EmployeeView>("ColumnTemplate")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.AllowPaging()
.PageSettings(page => { page.PageSize(4); })
.Columns(col =>
{
col.HeaderText("Employee Image").Template("#Template").TextAlign(TextAlign.Center).Width(110).Add();
…
})
) |
Thanks, it worked with the template id!