Hi all:
Can I get aggregates result in ClientTemplate?
I tried columns.Bound(c => c.idno).ClientGroupHeaderTemplate("# (Count: #= count#)");
with DataSource(DataSourceResult from MVC Action)
added .Aggregates(aggregates => { aggregates.Add(c => c.idno).Count(); }).Group(g => g.Add(c => c.idno))
The "count" value can be shown in Row.
But I want to create new a column with "count" value in each row,
columns.Bound(c => c.idno).ClientTemplate("#= count#"); and columns.Template(e => { }).ClientTemplate("#= count#");
It will get an error : Uncaught ReferenceError: count is not defined
Is it possibale to get aggregates result in ClientTemplate?
Thanks