Grid In-Cell edit error

2 Answers 78 Views
Grid
Remi
Top achievements
Rank 1
Iron
Remi asked on 15 Jul 2021, 01:17 PM

Hi,

I a have some troubles with the in cell editing feature for Grid.

With the doc example and the exact same code and data sample, I get a critical warning : React does not recognize  the 'dataItem' prop on a DOM element...

Full message attached.

 

Any idea ?

 

Thanks !

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 Jul 2021, 01:30 PM

Hello, Remi,

Indeed, in the hooks version of the demo, we are passing extra props to the cell which are not valid attributes.

This:

const clonedProps = { ...props.originalProps, ...additionalProps };
Should be this:

const clonedProps = { ...props.td.props, ...additionalProps };
This is the updated example:

https://stackblitz.com/edit/react-bzrm9n?file=app%2Frenderers.jsx

Additionally, I have updated your Telerik points for bringing this to our attention.

Regards,
Stefan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Remi
Top achievements
Rank 1
Iron
answered on 15 Jul 2021, 01:50 PM

thank you Stefan !

That's OK now.

Tags
Grid
Asked by
Remi
Top achievements
Rank 1
Iron
Answers by
Stefan
Telerik team
Remi
Top achievements
Rank 1
Iron
Share this question
or