You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/grid/templates.md
+138-1Lines changed: 138 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -309,12 +309,149 @@ Bound columns render the name of the field or their `Title` in their header. Thr
309
309
310
310
## Column Group Footer
311
311
312
-
When the grid is grouped, the columns can display a footer with information about the column data and some custom text/logic. The template is strongly typed and exposes the available aggregates values. For more information and examples, see the [Aggregates]({%slug grid-aggregates%}) article.
312
+
When the grid is grouped, the columns can display a footer with information about the column data [aggregates]({%slug grid-aggregates%}) and some custom text/logic. The template is strongly typed and exposes the available aggregates values.
313
+
314
+
>caption Sample Column Group Footer Template
315
+
316
+
````CSHTML
317
+
@* Group by the Team column to see the results and aggregate data in the footer *@
>caption The result from the code snippet above after grouping by the `Team` column
378
+
379
+

313
380
314
381
## Group Header
315
382
316
383
When the grid is grouped, the top row above the group provides information about the current group value by default. You can use this template to add custom content there in addition to the current value. For more information and examples, see the [Aggregates]({%slug grid-aggregates%}) article.
317
384
385
+
>caption Sample Group Header Template
386
+
387
+
````CSHTML
388
+
@* Group by the Team and Active Projects fields to see the results *@
0 commit comments