Customizing Grid

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-grid-padding-xNumber$kendo-table-md-cell-padding-x0.5rem
Description
The horizontal padding of the Grid.
$kendo-grid-padding-yNumber$kendo-table-md-cell-padding-y0.5rem
Description
The vertical padding of the Grid.
$kendo-grid-header-padding-xNumber$kendo-grid-padding-x0.5rem
Description
The horizontal padding of the Grid header.
$kendo-grid-header-padding-yNumber$kendo-grid-padding-y0.5rem
Description
The vertical padding of the Grid header.
$kendo-grid-grouping-header-padding-xNumber$kendo-grid-padding-y0.5rem
Description
The horizontal padding of the Grid grouping header.
$kendo-grid-grouping-header-padding-yNumber$kendo-grid-grouping-header-padding-x0.5rem
Description
The vertical padding of the Grid grouping header.
$kendo-grid-cell-padding-xNumber$kendo-grid-padding-x0.5rem
Description
The horizontal padding of the Grid cell.
$kendo-grid-cell-padding-yNumber$kendo-grid-padding-y0.5rem
Description
The vertical padding of the Grid cell.
$kendo-grid-filter-cell-padding-xNumber$kendo-grid-padding-y0.5rem
Description
The horizontal padding of the Grid filter cell.
$kendo-grid-filter-cell-padding-yNumber$kendo-grid-filter-cell-padding-x0.5rem
Description
The vertical padding of the Grid filter cell.
$kendo-grid-edit-cell-padding-xNumber$kendo-grid-cell-padding-x0.5rem
Description
The horizontal padding of the Grid edit cell.
$kendo-grid-edit-cell-padding-yCalculationcalc( #{k-spacing(2.5)} / 2 )calc(var(--kendo-spacing-2\.5, 0.625rem) / 2)
Description
The vertical padding of the Grid filter cell.
$kendo-grid-bgString$kendo-table-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of the Grid.
$kendo-grid-textString$kendo-table-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of the Grid.
$kendo-grid-borderString$kendo-table-bordervar(--kendo-color-border, #dee2e6)
Description
The border color of the Grid.
$kendo-grid-header-bgString$kendo-table-header-bgvar(--kendo-color-surface, #f8f9fa)
Description
The background color of Grid header.
$kendo-grid-header-textString$kendo-table-header-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of Grid header.
$kendo-grid-header-borderString$kendo-table-header-bordervar(--kendo-color-border, #dee2e6)
Description
The border color of Grid header.
$kendo-grid-header-gradientNull$kendo-table-header-gradientnull
Description
The background gradient of Grid header.
$kendo-grid-footer-bgString$kendo-table-footer-bgvar(--kendo-color-surface, #f8f9fa)
Description
The background color of Grid footer.
$kendo-grid-footer-textString$kendo-table-footer-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of Grid footer.
$kendo-grid-footer-borderString$kendo-table-footer-bordervar(--kendo-color-border, #dee2e6)
Description
The border color of Grid footer.
$kendo-grid-alt-bgString$kendo-table-alt-row-bgcolor-mix(in srgb, var(--kendo-color-on-app-surface, #212529) 5%, transparent)
Description
The background color of the Grid alternating rows.
$kendo-grid-alt-textNull$kendo-table-alt-row-textnull
Description
The text color of the Grid alternating rows.
$kendo-grid-alt-borderNull$kendo-table-alt-row-bordernull
Description
The border color of the Grid alternating rows.
$kendo-grid-hover-bgString$kendo-table-hover-bgcolor-mix(in srgb, var(--kendo-color-on-app-surface, #212529) 9%, transparent)
Description
The background color of hovered Grid rows.
$kendo-grid-hover-textNull$kendo-table-hover-textnull
Description
The text color of hovered Grid rows.
$kendo-grid-hover-borderNull$kendo-table-hover-bordernull
Description
The border color of hovered Grid rows.
$kendo-grid-selected-bgString$kendo-table-selected-bgcolor-mix(in srgb, var(--kendo-color-primary, #0d6efd) 25%, transparent)
Description
The background color of selected Grid rows.
$kendo-grid-selected-textString$kendo-table-selected-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of selected Grid rows.
$kendo-grid-selected-borderNull$kendo-table-selected-bordernull
Description
The border color of selected Grid rows.
$kendo-grid-selection-aggregates-bgString$kendo-grid-header-bgvar(--kendo-color-surface, #f8f9fa)
Description
The background color of the Grid selection aggregates container.
$kendo-grid-selection-aggregates-textString$kendo-grid-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of the Grid selection aggregates container.
$kendo-grid-selection-aggregates-borderString$kendo-grid-bordervar(--kendo-color-border, #dee2e6)
Description
The border color of the Grid selection aggregates container.
$kendo-grid-selection-aggregates-border-widthNumber$kendo-grid-border-width1px
Description
The border width of the Grid selection aggregates container.
$kendo-grid-selection-aggregates-spacingStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The spacing between the selection aggregates items.
$kendo-grid-selection-aggregates-line-heightString$kendo-grid-line-heightvar(--kendo-line-height, normal)
Description
The line height of the Grid selection aggregates container.
$kendo-grid-selection-aggregates-font-weightStringvar( --kendo-font-weight-bold, normal )!defaultvar(--kendo-font-weight-bold, normal)
Description
The font weight of the Grid selection aggregates container.
$kendo-grid-row-resizer-hover-bgStringif($kendo-enable-color-system, color-mix(in srgb, k-color( on-base ) 20%, transparent), rgba( k-contrast-color( $kendo-grid-bg ), .12 ))color-mix(in srgb, var(--kendo-color-on-base, #212529) 20%, transparent)
Description
The background color of the Grid row resize indicator.
$kendo-grid-row-resizer-active-bgString$kendo-color-primaryvar(--kendo-color-primary, #0d6efd)
Description
The background color of the active Grid row resize indicator.
$kendo-grid-row-resizer-heightStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The height of the Grid row resize indicator.

In this article

Not finding the help you need?