T
TanStack16mo ago
deep-jade

Select all rows in a group if any subrow is selected

I have a simple requirement but can't seem to find a solution. I have a table with grouping, and the data already has an id field. I need all the subrows in a group to be selected/deselected if the user selects/deselects any single row in the group. In other words, it should not be possible for the user to select any individual row, only the whole group. The data is grouped by the batchId field, and I can use it in the function getRowId, but then React complains that the rows are not unique. I'm out of ideas and would appreciate any suggestions on how to achieve this.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?