gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 934 forks source link

Select all checkbox to trigger function when getting paginated data from server #1985

Open thorep opened 1 year ago

thorep commented 1 year ago

Hi. Currently the checkbox to select all selects all items the datatable have access to. Is there a way to trigger a function when this button is clicked? Can't find it in the documentation . When check all is clicked I need to fetch all pages from server and select all items, even those who are not visible in the datatable.

gitMkara commented 1 year ago

options { onTableChange: (action, tableState) =>{...} } is triggered when any state in the table is updated. it might be used.