New to Kendo UI for Angular? Start 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-6, 1.5rem)
Description
The horizontal padding of the Grid.
$kendo-grid-padding-yString$kendo-table-md-cell-padding-yvar(--kendo-spacing-2\.5, 0.625rem)
Description
The vertical padding of the Grid.
$kendo-grid-header-padding-xString$kendo-grid-padding-xvar(--kendo-spacing-6, 1.5rem)
Description
The horizontal padding of the Grid header.
$kendo-grid-header-padding-yStringk-spacing(4)var(--kendo-spacing-4, 1rem)
Description
The vertical padding of the Grid header.
$kendo-grid-grouping-header-padding-xStringk-spacing(2)var(--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-6, 1.5rem)
Description
The horizontal padding of the Grid cell.
$kendo-grid-cell-padding-yString$kendo-grid-padding-yvar(--kendo-spacing-2\.5, 0.625rem)
Description
The vertical padding of the Grid cell.
$kendo-grid-filter-cell-padding-xString$kendo-grid-padding-xvar(--kendo-spacing-6, 1.5rem)
Description
The horizontal padding of the Grid filter cell.
$kendo-grid-filter-cell-padding-yString$kendo-grid-padding-yvar(--kendo-spacing-2\.5, 0.625rem)
Description
The vertical padding of the Grid filter cell.
$kendo-grid-edit-cell-padding-xString$kendo-grid-cell-padding-xvar(--kendo-spacing-6, 1.5rem)
Description
The horizontal padding of the Grid edit cell.
$kendo-grid-edit-cell-padding-yStringk-spacing(1.5)var(--kendo-spacing-1\.5, 0.375rem)
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, #212121)
Description
The text color of the Grid.
$kendo-grid-borderString$kendo-table-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
The border color of the Grid.
$kendo-grid-header-bgString$kendo-table-header-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of Grid header.
$kendo-grid-header-textString$kendo-table-header-textvar(--kendo-color-subtle, #757575)
Description
The text color of Grid header.
$kendo-grid-header-borderString$kendo-table-header-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
The border color of Grid header.
$kendo-grid-header-gradientNullnullnull
Description
The background gradient of Grid header.
$kendo-grid-footer-bgString$kendo-table-footer-bgvar(--kendo-color-surface-alt, #ffffff)
Description
The background color of Grid footer.
$kendo-grid-footer-textString$kendo-table-footer-textvar(--kendo-color-subtle, #757575)
Description
The text color of Grid footer.
$kendo-grid-footer-borderString$kendo-table-footer-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
The border color of Grid footer.
$kendo-grid-alt-bgColor$kendo-table-alt-row-bgtransparent
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, #212121) 8%, 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-borderString$kendo-table-hover-bordervar(--kendo-color-border, rgba(0, 0, 0, 0.12))
Description
The border color of hovered Grid rows.
$kendo-grid-selected-bgString$kendo-table-selected-bgcolor-mix(in srgb, var(--kendo-color-primary, #3f51b5) 12%, 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-alt, #ffffff)
Description
The background color of the Grid selection aggregates container.
$kendo-grid-selection-aggregates-textString$kendo-grid-textvar(--kendo-color-on-app-surface, #212121)
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.12))
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-heightNumber20px20px
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 ), .24 ))color-mix(in srgb, var(--kendo-color-on-base, #212121) 20%, transparent)
Description
The background color of the Grid row resize indicator.
$kendo-grid-row-resizer-active-bgString$kendo-color-primaryvar(--kendo-color-primary, #3f51b5)
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?