Hello,
is it possible to use the groupFooterTemplate with multiple group? It seems like only the footertemplate works.
Here is an example. I want to display the count in every group and subgroup, e.g. employees -> female -> count=2 and also employee -> count=4
Thanks in advance
Kind regards
Jens Borowy
is it possible to use the groupFooterTemplate with multiple group? It seems like only the footertemplate works.
Here is an example. I want to display the count in every group and subgroup, e.g. employees -> female -> count=2 and also employee -> count=4
01.<!DOCTYPE html>02.<html>03.<head>04. <meta charset="utf-8">05. <title>Kendo UI Snippet</title>06. 07. <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.common.min.css">08. <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.rtl.min.css">09. <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.default.min.css">10. <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.min.css">11. <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.default.min.css">12. <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.2.716/styles/kendo.mobile.all.min.css">13. 14. <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>15. <script src="http://cdn.kendostatic.com/2014.2.716/js/kendo.all.min.js"></script>16.</head>17.<body>18. 19.<div id="grid"></div>20.<script>21.$("#grid").kendoGrid({22. columns: [23. { field: "name"},24. { field: "typ", footerTemplate: "Employees Total: #=count#"}, //Works fine25. //{ field: "typ", footerTemplate: "Employees Total: #=count#", groupFooterTemplate: "Count: #=count#"}, //Doesn't work :-(26. { field: "gender" },27. { field: "age" } 28. 29. ],30. dataSource: {31. data: [32. { name: "Jane Doe", age: 30, typ: "customer", gender: "female"},33. { name: "John Doe", age: 32, typ: "customer", gender: "male" },34. { name: "Jodi Doe", age: 30, typ: "customer", gender: "female" },35. { name: "Jim Doe", age: 32, typ: "customer", gender: "male" },36. 37. 38. { name: "jens", age: 34, typ: "employee", gender: "male" },39. { name: "Anna", age: 36, typ: "employee", gender: "female" },40. { name: "Karl", age: 34, typ: "employee", gender: "male" },41. { name: "Gustav", age: 36, typ: "employee", gender: "female" }42. ],43. 44. group: [{field: "typ", aggregate:"count"},{field: "gender", aggregate:"count"}],45. 46. aggregate: { field: "typ", aggregate: "count" }47. 48. }49.});50.</script>51.</body>52.</html>Thanks in advance
Kind regards
Jens Borowy