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

GridColumnProps

The props that can be assigned to the Grid column.

NameTypeDefaultDescription

cell?

any

Defines the custom rendering of the cell. Accepts a Vue component, a render function, or a slot name. If not set, a GridCell will be rendered by default.

children?

any[] | GridColumnProps[]

A collection of child columns.

className?

string

Sets the custom CSS classes to the column cells.

columnMenu?

any

Defines if the column menu will be shown for the column. Accepts Boolean, a Vue component, a render function, or a slot name

columnMenuOpened?

boolean

Defines if the column menu is opened.

editable?

boolean

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

editor?

"boolean" | "numeric" | "text" | "date"

Defines the editor type. Used when the column enters the edit mode (more information and examples). Defaults to text.

field?

string

The field to which the column is bound.

filter?

"boolean" | "numeric" | "text" | "date"

Defines the filter type that is displayed inside the filter row. Defaults to text.

filterable?

boolean

Defines if a filter UI will be displayed for this column. Defaults to true.

filterCell?

any

Defines the custom rendering of the filter cell. Accepts a Vue component, a render function, or a slot name. If not set, a GridFilterCell will be rendered by default.

footerCell?

any

Defines the custom rendering of the footer cell. The footer cell have to render an HTMLTableCellElement (TD element) and apply its style and colspan values from the footer component props. Accepts a Vue component, a render function, or a slot name.

footerClassName?

string

Sets the custom CSS classes to the column footer cell if there is footer.

format?

string

The format that is applied to the value before it is displayed. 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 if the column can be dragged to the group panel. Defaults to true.

headerCell?

any

Defines the custom rendering of the header cell. Accepts a Vue component, a render function, or a slot name. If not set, a GridHeaderCell will be rendered by default.

headerClassName?

string

Sets the custom CSS classes to the column header cell.

headerSelectionValue?

boolean

Defines if the header selection checkbox is checked.

hidden?

boolean

Indicates whether the column is hidden.

locked?

boolean

minResizableWidth?

number

The width of the column (in pixels) below which the user is not able to resize the column through the UI. Defaults to 10. It is responsible only for the minimal width that is observed after the manual drag and it is not responsible for the width of the columns when the browser is resized

orderIndex?

number

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

reorderable?

boolean

Indicates whether the column is reorderable.

resizable?

boolean

Indicates whether the column is resizable.

sortable?

boolean

Allows the column headers to be clicked and the sortChange event emitted. You have to handle the sortChange event yourself and sort the data.

title?

string

The title of the column.

type?

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

The type of the data which will be used when formatting the cell data. Could be one of the following values 'string' | 'number' | 'boolean' | 'date'. Defaults to string.

width?

string | number

The width of the column (in pixels).