mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

setSelectedRows on customToolbarSelect

Open ayrosochang opened this issue 4 years ago • 1 comments

Issue: Apparently using the setSelectedRows on customToolbarSelect causes an infinite rerender loop

I created a table component to avoid redundant code.

image The photo above is what I have done. I need the id of the row that is selected through the checkbox.

ayrosochang avatar May 19 '21 18:05 ayrosochang

in your table options, use onRowSelectionChange(currentRowsSelected, allRowsSelected, rowsSelected?) { console.log(rowsSelected); },

akshay-acharya-ey avatar Sep 07 '22 04:09 akshay-acharya-ey