gregnb / mui-datatables

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

Need radio button for single selection #1453

Open Siddhant-Shinde opened 4 years ago

Siddhant-Shinde commented 4 years ago

Currently there is no radio button is available for selection process though we have single selection option with checkbox.

Expected Behavior

For single selection process, can we have a radio button view as well with checkbox view in option?

Current Behavior

For single selection, there is only checkbox view present

Your Environment

Tech Version
Material-UI 4.9.14
MUI-datatables 2.14.0
React 16.12.0
browser
etc
patorjk commented 4 years ago

This is a good idea, I'll need to think more about this. There is the checkbox component override, but that affects all checkboxes. I could put in one that was specific to the row selection, that could solve this.

Siddhant-Shinde commented 4 years ago

Thank you for considering my request. Will you please notify me once the changes are done? 

patorjk commented 4 years ago

Added an update for this in version 3.4.0. Example: https://github.com/gregnb/mui-datatables/blob/master/examples/custom-components/index.js#L35

Siddhant-Shinde commented 4 years ago

Thank you patorjk