Here is my razor code:
and controller action
I try to group by column Name on UI, but it throws me runtime js error: Object doesn't support property or method [count]
Please help...
Html.Kendo().Grid<
KendoDemoMvc.Models.Issue
>()
.Name("Issues")
.DataSource(ds => ds.Ajax().ServerOperation(false)
.Read("Issues", "Home")
.PageSize(5)
.Aggregates(aggr =>
{
aggr.Add(o => o.Value).Count();
})
)
.Columns(col =>
{
col.Bound(x => x.Id);
col.Bound(x => x.Name);
col.Bound(x => x.Value)
.ClientGroupHeaderTemplate("(Total: #=count#)")
;
})
.Groupable()
.Selectable()
.Pageable()
.Render()
;
public ActionResult Issues([DataSourceRequest]DataSourceRequest request)
{
DataSourceResult result = GetIssues().ToDataSourceResult(request);
return Json(result);
}
I try to group by column Name on UI, but it throws me runtime js error: Object doesn't support property or method [count]
Please help...