How to disable/overide Export button of XGrid's GridToolbar in MUI?
If you disable both options that are available (print and download CSV) the whole button goes away.
You can do this by passing the disable props to the slotProps as per below;
<Datagrid
slots={{ toolbar: GridToolbar }}
slotProps={{
toolbar: {
printOptions: { disableToolbarButton: true },
csvOptions: { disableToolbarButton: true },
}}
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With