New to Kendo UI for AngularStart a free 30-day trial

Customizing Grid

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-grid-padding-xString$kendo-table-md-cell-padding-xvar(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the Grid.
$kendo-grid-padding-yString$kendo-table-md-cell-padding-yvar(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the Grid.
$kendo-grid-header-padding-xString$kendo-grid-padding-xvar(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the Grid header.
$kendo-grid-header-padding-yString$kendo-grid-padding-yvar(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the Grid header.
$kendo-grid-grouping-header-padding-xString$kendo-grid-padding-yvar(--kendo-spacing-2, 0.5rem)
Description
The horizontal padding of the Grid grouping header.
$kendo-grid-grouping-header-padding-yString$kendo-grid-grouping-header-padding-xvar(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the Grid grouping header.
$kendo-grid-cell-padding-xString$kendo-grid-padding-xvar(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the Grid cell.
$kendo-grid-cell-padding-yString$kendo-grid-padding-yvar(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the Grid cell.
$kendo-grid-filter-cell-padding-xString$kendo-grid-padding-yvar(--kendo-spacing-2, 0.5rem)
Description
The horizontal padding of the Grid filter cell.
$kendo-grid-filter-cell-padding-yString$kendo-grid-filter-cell-padding-xvar(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the Grid filter cell.
$kendo-grid-edit-cell-padding-xString$kendo-grid-cell-padding-xvar(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the Grid edit cell.
$kendo-grid-edit-cell-padding-yCalculationcalc( #{k-spacing(1.5)} / 2 )calc(var(--kendo-spacing-1\.5, 0.375rem) / 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, #3d3d3d)
Description
The text color of the Grid.
$kendo-grid-borderString$kendo-table-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
Description
The border color of the Grid.
$kendo-grid-header-bgString$kendo-table-header-bgvar(--kendo-color-surface, #fafafa)
Description
The background color of Grid header.
$kendo-grid-header-textString$kendo-table-header-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of Grid header.
$kendo-grid-header-borderString$kendo-table-header-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
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-grid-header-bgvar(--kendo-color-surface, #fafafa)
Description
The background color of Grid footer.
$kendo-grid-footer-textString$kendo-grid-header-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of Grid footer.
$kendo-grid-footer-borderString$kendo-grid-header-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
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, #3d3d3d) 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, #3d3d3d) 11%, 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, #ff6358) 25%, transparent)
Description
The background color of selected Grid rows.
$kendo-grid-selected-textNull$kendo-table-selected-textnull
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, #fafafa)
Description
The background color of the Grid selection aggregates container.
$kendo-grid-selection-aggregates-textString$kendo-grid-textvar(--kendo-color-on-app-surface, #3d3d3d)
Description
The text color of the Grid selection aggregates container.
$kendo-grid-selection-aggregates-borderString$kendo-grid-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.08))
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 )var(--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, #3d3d3d) 20%, transparent)
Description
The background color of the Grid row resize indicator.
$kendo-grid-row-resizer-active-bgString$kendo-color-primaryvar(--kendo-color-primary, #ff6358)
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
VariablesSuggested Links
Not finding the help you need?
Contact Support