Completed
Last Updated: 18 Apr 2014 12:44 by ADMIN
Fernando
Created on: 14 Apr 2014 12:03
Category: Kendo UI for jQuery
Type: Feature Request
1
ClientGroupHeaderTemplate
Hello

I'm using ClientGroupHeaderTemplate and dynamic grouping but the aggregation isn't working the way I need it to.

For example: 
	If I set a column "RandomValue" with a aggregation(sum, count etc), bound it with ClientGroupHeaderTemplate and group another column, the aggregation value is not displayed, but if I group the column "RandomValue" then the aggregation value is displayed but that is not useful to me
	If I bound "RandomValue" with a ClientFooterTemplate or ClientGroupFooterTemplate and group another column, the value is displayed

	I need to bound a column with ClientGroupHeaderTemplate  and the value should be displayed for whichever column I group, just like it happens with ClientGroupFooterTemplate and ClientFooterTemplate

        It'd be useful if the aggregation value could be displayed right under the column name

      My suggestion is that the ClientGroupHeaderTemplate could have the same features as the other templates like I described

1 comment
ADMIN
Telerik Admin
Posted on: 18 Apr 2014 12:44
Thank you for the explanation.

Note that for the scenario you depicted if you specify groupHeaderTemplate for other columns used for group by, the result from the aggregates for these columns should be displayed in the group header template as expected.

I validated that by modifying the grid definition from this demo:
http://demos.telerik.com/kendo-ui/web/grid/aggregates.html

by including groupHeaderTemplate for the UnitsOnOrder column and grouping by this column by default. See this Dojo sample for reference:

http://trykendoui.telerik.com/OVub