New to KendoReact? Start a free 30-day trial

GridCellProps

Represents the props of the GridCell component (more information).

ariaColumnIndex

number

The index to be applied to the aria-colindex attribute.

className?

string

The custom CSS classes of the cells.

colSpan?

number

The column span of the cell.

columnIndex?

number

The index of the column in the rendered columns collection.

columnsCount?

number

The number of rendered columns in the Grid.

dataIndex

number

Zero-based index of the dataItem.

dataItem

any

The data item which corresponds to the current row.

editor?

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

The type of the editor which will be used when the cell is in edit mode.

expanded?

boolean

The expanded value of the cell.

field?

string

The field to which the cell is bound.

format?

string

The format that is applied to the value before the value is displayed. Takes the {0:format} form where format is a standard number format, a custom number format, a standard date format, or a custom date format. For more information on the supported date and number formats, refer to the kendo-intl documentation.

isSelected

boolean

Indicates if the cell is selected.

onChange?

(event: { dataIndex: number; dataItem: any; field?: string; syntheticEvent: SyntheticEvent<any>; value?: any; }) => void

The event that is fired when the cell value is changed.

render?

(defaultRendering: ReactElement<HTMLTableCellElement> | null, props: GridCellProps) => ReactElement<HTMLTableCellElement> | null

A function for overriding the default rendering of the cell.

rowType?

GridRowType

The type of the row.

selectionChange?

(event: { syntheticEvent: SyntheticEvent<any>; }) => void

The event that is fired when the cell is selected.

style?

CSSProperties

The styles for the cell.