How to exclude disabled tr while selecting "Select All" in Carbon Design DataTable React

75 Views Asked by At

I have few rows as disabled. But still that rows are getting selected while selecting "Select All" in Carbon Design Data Table.

Issue while Select All

<TableBatchActions {...batchActionProps}>...In batchActionProps all records are getting stored ( including disabled rows)

1

There are 1 best solutions below

0
Saloni Rathi On

Before passing the rows to the DataTable, set disabled:true for all the rows that you want to be disabled.