Skip to content

Commit 6356aba

Browse files
docs(grid): add info about grouping
1 parent 58c5d70 commit 6356aba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/grid/grouping.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,22 @@ The Grid component offers support for grouping.
1414

1515
To enable grouping, set the grid's `Groupable` property to `true`.
1616

17-
Drag a column header to the group panel and the grid will create groups in the data rows based on the available values for that field. An indicator will be shown for the column that is used for grouping.
17+
Drag a column header to the group panel and the grid will create groups in the data rows based on the available values for that field. An indicator will be shown for the column that is used for grouping. The group header shows the value for the field by which it is grouping.
1818

1919
You can also group by multiple fields and groups for subsequent fields will be nested within their parent groups. When adding a group, you can drag it in the desired position in the list of current groups.
2020

2121
To remove a group setting, click the `[x]` button on its indicator in the group panel.
2222

23+
To prevent grouping by a field, set `Groupable="false"` for on its column. This can be useful for fields with unique values like IDs or names.
24+
2325
>caption Enable grouping in Telerik Grid
2426
2527
````CSHTML
2628
@using Telerik.Blazor.Components.Grid
2729
2830
<TelerikGrid Data=@GridData Groupable="true" Pageable="true" Height="400px">
2931
<TelerikGridColumns>
30-
<TelerikGridColumn Field=@nameof(Employee.Name) />
32+
<TelerikGridColumn Field=@nameof(Employee.Name) Groupable="false" />
3133
<TelerikGridColumn Field=@nameof(Employee.Team) Title="Team" />
3234
<TelerikGridColumn Field=@nameof(Employee.IsOnLeave) Title="On Vacation" />
3335
</TelerikGridColumns>

0 commit comments

Comments
 (0)