KendoReact Data Grid Custom Cells Overview
The KendoReact Data Grid provides the option to override its internal components by allowing you to customize its different types of cells.
Starting with KendoReact 5.14.0, you can apply more customizations to the Grid with a new set of properties. The previously available props such as the GridColumn
cell
prop or the GridcellRender
callback are still available but provide less options for customization as the ones listed in this article.
Getting Started with the KendoReact Data Grid Custom Cells
The Grid has a cells
property that provides the option to add a template to every single cell in the Grid infrastructure separately. In addition, the cells
prop is also available for the GridColumn component, and is useful if you want to configure the cells of an individual column.
The cell types you are able to customize through the cells
prop are:
- Data Cells
- Group Header, Group Footer, Header, Footer, and Filter Cells
- Edit Cells
- Hierarchy Cells
- Data Cells
Add Basic Custom Data Cell
All the bellow customizations can be done on the GridColumn level using its cells
property that gives you full freedom over the cell rendering.
In the following example, a custom data cell renderers are implemented for the GridColumn with the Discontinued
field.