kendo-gridkendo-react-ui

How can I pass a function to a Kendo React v11.x Grid's custom cell prop?


I'm attempting to upgrade from Kendo React 10.x to 11.x but there is a ton of breaking changes to the Grid component.

We have a lot of custom Grid cells that use the function prop syntax. The syntax that allows a function to be passed to the cell prop.

In version 11.x this function syntax appears to be removed.

Is there any way to pass additional props to a custom cell component, or a way to pass a function to the cell prop anymore?

enter image description here


Solution

  • Version 11 still supports the same syntax, it just looks different. The new syntax is as below, for example ...

    cells={{
       data: {(p)=> <GridDeleteCell .../>} 
       headerCell: {(p)=> <GridDeleteHeaderCell .../>} 
       ...
    }}