I have this grid on one of my pages
My template column renders exactly as it should all good. However i have this on another page
My column template renders 'undefined' as soon as put the template on the column I get this error. has any one else have the problem? I've tried using the clientTemplate as well but the link never postbacks the value and my ID is always null. Can some one point me in the right direction? Thank you in advanced
<
div
id
=
"SearchResults"
>
@Html.Kendo().Grid(Model).Name("grdSearchResults").Columns(column=>
{
column.Bound(c => c.FormID).Title("Form Number");
column.Bound(c => c.Country).Title("Country");
column.Bound(c => c.State).Title("State");
column.Template(c => @Html.ActionLink(c.Description, "FileBoundGetForm", new { id = c.FormID }, new { @target = "_blank" })).Title("Description");
column.Bound(c => c.ModifiedUser).Title("Modified User");
column.Bound(c => c.CreatedDate).Title("Created Date");
}).DataSource(ds =>
ds.Ajax()
.Read(reader => reader.Action("DSReleaseForms", "ReleaseForm", new { ByCountry = ViewBag.stateFilter, ByState = ViewBag.countryFilter }).Data("additionalData"))).Pageable()
</
div
>
My template column renders exactly as it should all good. However i have this on another page
<
div
id
=
"results"
>
@Html.Kendo().Grid(Model).Name("grdClientResults").Columns(column =>
{
column.Template(@<
text
>
@Html.ActionLink(@item.ClientID.ToString(), "ClientAdmin", new { id = @item.ClientID })</
text
>).Title("Edit");//.ClientTemplate("<
a
href
=
'/ClientAdmin/ClientAdmin/GetClient/#=ClientID#'
>#=ClientID#</
a
>");
column.Bound(c => c.ClientID).Title("Client Id");
column.Bound(c => c.Name).Title("Client Name");
column.Bound(c => c.Address1).Title("Address");
column.Bound(c => c.Address2).Title("Address2");
column.Bound(c => c.City).Title("City");
column.Bound(c => c.StateProvince).Title("State");
}).DataSource(ds =>
ds.Ajax()
.Read(reader => reader.Action("ClientDetail", "ClientAdmin"))).Pageable()
</
div
>