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: docs/docs/05-components/grid.mdx
+85-1Lines changed: 85 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,8 @@ Grid requires either `Data` or `DataProvider` parameter, but not both.
101
101
| SortKeySelector |`Expression<Func<TItem, IComparable>>`||| Expression used for sorting. | 1.0.0 |
102
102
| SortString | string | null || Gets or sets the column sort string. This string is passed to the backend/API for sorting. And it is ignored for client-side sorting. | 1.0.0 |
103
103
| StringComparison |`StringComparison`|`StringComparison.OrdinalIgnoreCase`|| Gets or sets the StringComparison. Use `StringComparison.CurrentCulture` or `StringComparison.CurrentCultureIgnoreCase` or `StringComparison.InvariantCulture` or `StringComparison.InvariantCultureIgnoreCase` or `StringComparison.Ordinal` or `StringComparison.OrdinalIgnoreCase`. | 1.0.0 |
104
+
| SummaryType |`GridSummaryColumnType`|`GridSummaryColumnType.None`|| Gets or sets the summary type. Supported values are `GridSummaryColumnType.None`, `GridSummaryColumnType.Count`, `GridSummaryColumnType.Sum`, `GridSummaryColumnType.Average`, `GridSummaryColumnType.Min`, `GridSummaryColumnType.Max`. | 3.4.0 |
105
+
| SummaryValueDisplayFormat | string | null || Gets or sets the summary value display format. | 3.4.0 |
104
106
| TextAlignment |`Alignment`|`Alignment.Start`|| Gets or sets the text alignment. Use `Alignment.Start` or `Alignment.Center` or `Alignment.End`. | 1.0.0 |
105
107
| TextNoWrap | bool | false || Gets or sets text nowrap. | 1.0.0 |
106
108
| IsVisible | bool | true || Gets or sets visibility of the Grid column. | 3.4.0 |
@@ -4187,4 +4189,86 @@ Set the <code>IsVisible</code> parameter to **false** to hide the column.
To enable summaries on columns, set the `AllowSummary` parameter to **true** at the Grid level. Additionally, set the `SummaryType` parameter on each GridColumn.
4197
+
In the following example, the Employee Name column has `SummaryType` set to **GridSummaryColumnType.Count**, and the **Salary** column has `SummaryType` set to **GridSummaryColumnType.Sum** and `SummaryValueDisplayFormat` set to **C** to display the sum of salaries in currency format.
0 commit comments