KendoReact Grid checkbox selection issue

0 Answers 651 Views
Grid
samatha
Top achievements
Rank 1
samatha asked on 01 Sep 2021, 10:44 AM

Detail grid is not loading when I use checkbox column in kendo grid.

Could you suggest what may be the reason it is breaking.

If I remove checkbox column from my data then detail is working fine.

Stefan
Telerik team
commented on 01 Sep 2021, 12:47 PM

Hello, Samatha,

Could you please share more details on what specifically is breaking as I made an example and it seems to be working as expected:

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

Please let me know if I missed something.

samatha
Top achievements
Rank 1
commented on 01 Sep 2021, 04:06 PM | edited

It is not working when we map data.  Can u try adding map like below and check

data={dataState.map((item) => ({

...item,

[SELECTED_FIELD]:selectedState[idGetter(item)]

}))}

Stefan
Telerik team
commented on 02 Sep 2021, 09:37 AM

I use the same approach and it was still working:

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

If the issue still occurs, please update the example to reproduce it and I will be happy to take a look at it.
samatha
Top achievements
Rank 1
commented on 04 Sep 2021, 01:56 PM

Issue is resolved. Thanks for your help Stefan.

Is it possible to disable few checkboxes on gridload based on status field. Caan you help m on this

Stefan
Telerik team
commented on 06 Sep 2021, 05:08 AM

Hello, Samatha,

I'm glad that the initial issue is resolved.

As for disabling the checkboxes, this can be done using a custom cell that will render the checkboxes. Then based on the row that the developer can disable them.

If additional assistance is needed, please post the question in a separate thread, as this can help other people from the community find it easier.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
samatha
Top achievements
Rank 1
Share this question
or