diff --git a/packages/html/src/grid/grid.spec.tsx b/packages/html/src/grid/grid.spec.tsx index 4eba199fbdb..1be182bf996 100644 --- a/packages/html/src/grid/grid.spec.tsx +++ b/packages/html/src/grid/grid.spec.tsx @@ -17,6 +17,7 @@ export type KendoGridProps = KendoGridOptions & { pager?: React.JSX.Element; pagerPosition?: 'top' | 'bottom'; groupingHeader?: React.JSX.Element; + gridSelectionAggregates?: React.JSX.Element; _renderAriaRoot?: boolean; }; @@ -35,6 +36,7 @@ export const Grid = ( toolbar, pager, groupingHeader, + gridSelectionAggregates, _renderAriaRoot, ...other } = props; @@ -54,6 +56,7 @@ export const Grid = ( { props.children && _renderAriaRoot ?
{props.children}
: props.children } + {gridSelectionAggregates} {pagerPosition === 'bottom' && pager} ); diff --git a/packages/html/src/grid/templates/grid-with-selection-aggregates.tsx b/packages/html/src/grid/templates/grid-with-selection-aggregates.tsx index 17a0b525ea4..6880667d26b 100644 --- a/packages/html/src/grid/templates/grid-with-selection-aggregates.tsx +++ b/packages/html/src/grid/templates/grid-with-selection-aggregates.tsx @@ -69,39 +69,43 @@ export const GridWithSelectionAggregates = ({ aggregated = false, contentClassNa + + )} + gridSelectionAggregates={ + (
- { aggregated ? - <> -
- Sum: - 122.00 -
-
- Avg: - 30.50 -
-
- Min: - 13 -
-
- Max: - 53 -
-
- Count: - 8 -
- - : + { aggregated ? + <> +
+ Sum: + 122.00 +
+
+ Avg: + 30.50 +
+
+ Min: + 13 +
+
+ Max: + 53 +
Count: - 0 + 8
- } -
- - )} + + : +
+ Count: + 0 +
+ } + + ) + } {...other}>