GridColumnProps
The props that you can set on a Grid column.
Definition
Package:@progress/kendo-vue-grid
Properties
cell?
any
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.
children?
any[] | GridColumnProps[]
A collection of child columns.
className?
string
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.
1
columnMenu?
any
Defines whether the Grid shows the column menu for the column.
Accepts a boolean, a Vue component, a render function, or a slot name.
columnMenuOpened?
boolean
Defines whether the column menu is open.
Sets the type of the column and renders a dedicated column for interaction.
"data"
editable?
boolean
Defines whether the column is editable (more information and examples).
true
Defines the editor type that the column uses in edit mode (more information and examples).
'text'
field?
string
The field to which the column is bound.
Defines the filter type that the filter row renders.
'text'
filterable?
boolean
Defines whether the column renders a filter UI.
true
filterCell?
any
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.
filterTitle?
string
Defines the title that the Grid sets to the input element in the filter cell.
footerCell?
any
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.
footerClassName?
string
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.
true
headerCell?
any
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.
headerClassName?
string
Sets custom CSS classes to the header cell of the column.
headerSelectionValue?
boolean
Defines whether the header selection checkbox is checked.
hidden?
boolean
Controls the visibility of the Grid column.
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.
menuIcon?
SVGIcon
Overrides the default column menu icon (three vertical dots) or the icon that you set through the (columnMenuIcon) property.
minResizableWidth?
number
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.
orderIndex?
number
Determines the position of the column. Columns with a smaller orderIndex appear
before columns with a bigger orderIndex. Defaults to 0.
reorderable?
boolean
Indicates whether the user can reorder the column.
true
resizable?
boolean
Indicates whether the user can resize the column.
true
rowSpannable?
boolean | GridRowSpannableSettings
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.
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).