Grid multi checkbox selection

1 Answer 87 Views
General Discussions Grid
Daniel
Top achievements
Rank 1
Iron
Iron
Daniel asked on 17 May 2022, 04:45 PM

I everyone.

I counter a problem with the multi-checkbox selection, in my grid could be many items with the same Item ID this causes the selection of all the products with the same ID by just clicking on one of them.

how can I solve this problem?s

1 Answer, 1 is accepted

Sort by
0
Filip
Telerik team
answered on 19 May 2022, 01:17 PM

Hello, Daniel,

The encountered behavior is expected and items with the same ID will indeed get selected since the checkboxes rely on having a unique ID.

Depending on your business logic and use cases, what I can suggest currently is to set each item with a unique ID and specify a separate property in the items that can be the same without interfering with the ID for selection.

This approach can be seen in our demos, where the data is structured to have one unique ID, but multiple others like the  SupplierID: 

https://stackblitz.com/edit/react-pywn9x?file=app/products.json


I hope this helps.

Regards, FilipProgress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions Grid
Asked by
Daniel
Top achievements
Rank 1
Iron
Iron
Answers by
Filip
Telerik team
Share this question
or