New to Telerik UI for Blazor? Download Free 30-day trial
Grid - Grouping
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Drag a column header and drop it here to group by that column
ProductName | Category Id | In Stock | List Price | Discontinued |
---|
Chai | 1 | 39 | 18 | False |
Chang | 1 | 17 | 19 | False |
Aniseed Syrup | 2 | 13 | 10 | False |
Chef Anton's Cajun Seasoning | 2 | 53 | 22 | False |
Chef Anton's Gumbo Mix | 2 | 0 | 21.35 | True |
Grandma's Boysenberry Spread | 2 | 120 | 25 | False |
Uncle Bob's Organic Dried Pears | 7 | 15 | 30 | False |
Northwoods Cranberry Sauce | 2 | 6 | 40 | False |
Mishi Kobe Niku | 6 | 29 | 97 | True |
Ikura | 8 | 31 | 31 | False |
Queso Cabrales | 4 | 22 | 21 | False |
Queso Manchego La Pastora | 4 | 86 | 38 | False |
Konbu | 8 | 24 | 6 | False |
Tofu | 7 | 35 | 23.25 | False |
Genen Shouyu | 2 | 39 | 15.5 | False |
- Grouping.razor
- ProductService.cs
- ProductDto.cs
Loading the demo source code...please wait.
Description
You can group the grid by dragging the column headers. Dragging a column header to the designated place for grouping will visually distinguish all items that match the group. The groups can show aggregates and customizable headers. Try grouping by the "Category Name", "Standard Cost" and "Active Selling" fields, for example. To disable grouping for a Grid column set the Groupable parameter of the column to false.
This Blazor Data Grid Grouping example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.