admin管理员组文章数量:1326287
I want to remove the Select All checkbox which is at the top of the checkbox datacolumn.
checkboxSelection
adds checkboxes for every row but also adds the select all checkbox on top in the header. How can i remove this?
I want to remove the Select All checkbox which is at the top of the checkbox datacolumn.
checkboxSelection
adds checkboxes for every row but also adds the select all checkbox on top in the header. How can i remove this?
Share Improve this question asked Sep 13, 2022 at 9:40 akshay_acharyaakshay_acharya 892 silver badges11 bronze badges1 Answer
Reset to default 8I had the same problem and was looking at the MUI-X git. I found a solution for this, is hide the header of the checkbox, so in that way you will remove the select all behavior.
Hope this works for you as well.
Here is the original solution on git: https://github./mui/mui-x/issues/1904#issuement-1219293315
<DataGrid
...
sx={{
"& .MuiDataGrid-columnHeaderCheckbox .MuiDataGrid-columnHeaderTitleContainer": {
display: "none"
}
}}/>
Example
本文标签: javascriptHow to remove select all checkbox in mui data grid headerStack Overflow
版权声明:本文标题:javascript - How to remove select all checkbox in mui data grid header - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742210123a2433556.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论