New to Kendo UI for Vue? Start a free 30-day trial

The props that you can set on a Grid column.

Definition

Package:@progress/kendo-vue-grid

Properties

obsolete Will be removed in the next major release. Use the cells prop instead.

Defines a custom rendering for the cells of the column.

Specifies a set of cell components that the Grid renders instead of the built-in cells.

Example:
vue
<Grid :columns="[{ field: 'ProductName', cells: { data: CustomDataCell } }]" />

A collection of child columns.

Sets custom CSS classes to the cells of the column.

colSpan?

number | (colSpanProps: GridColSpanProps) => number

Sets the colSpan of the column, so the row content spans over multiple cells. Accepts a number or a function that returns a number.

Default:

1

Defines whether the Grid shows the column menu for the column. Accepts a boolean, a Vue component, a render function, or a slot name.

Defines whether the column menu is open.

Sets the type of the column and renders a dedicated column for interaction.

Default:

"data"

Example:
vue
<Grid :columns="[{ columnType: 'checkbox' }]" />

editable?

boolean

Defines whether the column is editable (more information and examples).

Default:

true

Defines the editor type that the column uses in edit mode (more information and examples).

Default:

'text'

field?

string

The field to which the column is bound.

Defines the filter type that the filter row renders.

Default:

'text'

Defines whether the column renders a filter UI.

Default:

true

obsolete Will be removed in the next major release. Use the cells.filterCell prop instead.

Defines a custom rendering for the filter cell of the column.

Defines the title that the Grid sets to the input element in the filter cell.

obsolete Will be removed in the next major release. Use the cells.footerCell prop instead.

Defines a custom rendering for the footer cell of the column.

Sets custom CSS classes to the footer cell of the column, if the column has a footer.

format?

string

The format that the Grid applies to the value before it shows it. Takes the {0:format} form where format is any of the following:

  • A standard number format
  • A custom number format
  • A standard date format
  • A custom date format

For more information on the supported date and number formats, refer to the kendo-intl documentation.

groupable?

boolean

Determines whether the user can drag the column to the group panel.

Default:

true

obsolete Will be removed in the next major release. Use the cells.headerCell prop instead.

Defines a custom rendering for the header cell of the column.

Sets custom CSS classes to the header cell of the column.

Defines whether the header selection checkbox is checked.

hidden?

boolean

Controls the visibility of the Grid column.

Default:

false

id?

string

The column identifier used to distinguish columns for example in multi column header scenarios with resize and keyboard navigation. Also used for unique key for rendering the component cells. If not set, the component will generate unique id automatically.

locked?

boolean

Defines whether the column is locked. Locked columns stay in place and do not scroll horizontally.

media?

string

Sets the screen size condition that must match for the column to stay visible. If you set the hidden property, it overrides the media behavior.

SVGIcon

Overrides the default column menu icon (three vertical dots) or the icon that you set through the (columnMenuIcon) property.

The width of the column (in pixels) below which the user cannot resize the column through the UI. Defaults to 10. It applies only to the minimum width when the user drags the column edge. It does not affect the width of the columns when the browser window is resized.

Determines the position of the column. Columns with a smaller orderIndex appear before columns with a bigger orderIndex. Defaults to 0.

Indicates whether the user can reorder the column.

Default:

true

resizable?

boolean

Indicates whether the user can resize the column.

Default:

true

Defines whether the Grid spans the cells of the column when their values are the same.

Allows the user to click the column header and emit the sortChange event. You have to handle the sortChange event and sort the data yourself.

Default:

true

title?

string

The title of the column.

type?

"string" | "number" | "boolean" | "date"

The type of the data that the Grid uses when it formats the cell data. The possible values are 'string', 'number', 'boolean', and 'date'. Defaults to string.

width?

string | number

The width of the column (in pixels).