WEBVTT

1
00:00:00.606 --> 00:00:09.358
Once a table has more than a screenful of rows, people stop reading it and start asking it questions. Grouping and totals are how it answers.

2
00:00:11.205 --> 00:00:17.171
The same people as before, with a department and a city to group by, and a salary worth adding up.

3
00:00:22.983 --> 00:00:39.073
Two options do the work here. Aggregate says what a group header shows for that column: an average age, a summed salary. Summary does the same thing for the whole table at the bottom. Both read the raw value, so a formatted currency still adds up correctly.

4
00:00:39.342 --> 00:00:45.726
Then groupBy on the component names the starting grouping, and groupable lets the user change it later.

5
00:00:46.038 --> 00:00:56.276
Read it back whole: the same people, one column list with the aggregate and summary options on it, and groupBy on the component. That is everything this needs.

6
00:00:56.601 --> 00:01:09.904
Every department is a group header carrying its own totals, and the row at the bottom totals the table. Open one and the people inside are ordinary rows: still sortable, still editable, still yours.

7
00:01:10.327 --> 00:01:25.999
Grouping is part of the row model rather than a display trick, which is why the same thing works over server data: the server returns the groups and the grid asks for a group's rows only when someone opens it. Lesson seven makes all of this look like your product.

8
00:01:27.940 --> 00:01:31.723
The file is on the page below. See you in lesson seven.
