Skip to content

Option to Hide Radio Button Column for selection #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mjrussell opened this issue Sep 22, 2015 · 10 comments
Closed

Option to Hide Radio Button Column for selection #57

mjrussell opened this issue Sep 22, 2015 · 10 comments

Comments

@mjrussell
Copy link

Being able to click the row to select is great and makes the radio button column somewhat unnecessary (at least for single selection).

Would be great to be able to pass an option to selectRow that hides the selection column.

Something like:

var selectSessionProp = {
            mode: 'radio',
            clickToSelect: true,
            hideColumn: true,
            bgColor: 'rgb(238, 193, 213)',
            onSelect: this.props.onSelect
        };
@AllenFang
Copy link
Owner

OK I'll add this feature in next version. Thanks your feedback :)

@AllenFang
Copy link
Owner

HI @mjrussell, you can hide selection column as follow:

var selectRowProp = {
  mode: "radio",
  clickToSelect: true,
  hideSelectColumn: true, //you can hide select column, if you enable clickToSelect
};

@mjrussell
Copy link
Author

👍 Awesome!

@ssjogus
Copy link

ssjogus commented Dec 11, 2015

thanks for this new feature, but somehow when i add this line in the code, it is disturbing table alignment. When a scrollbar appears in table-body, the most right column border in the table-header and table-body does not match.. any idea, how to fix that?

@AllenFang
Copy link
Owner

@ssjogus, would you give me your code? because I can't reproduce this problem :)
--updated--
Which version did you used?

@ssjogus
Copy link

ssjogus commented Dec 11, 2015

hi @AllenFang , sorry the issue is not because of this new feature.. i think its over there even i don't use the hideSelectColumn. i am using 0.9.7 version.

screenshot1

@AllenFang
Copy link
Owner

@ssjogus, upgrade to the newest version will solve your problem, and remember to re import the css file to your project.

@ssjogus
Copy link

ssjogus commented Dec 14, 2015

when i update, it is asking for react 0.14, and our project uses react 0.13. so i am not able to use it.

@AllenFang
Copy link
Owner

@ssjogus, upgrade is only one solution, I can't republish 0.9.7 for fixing this bug ;(

@vishalbsacet
Copy link

vishalbsacet commented Aug 29, 2020

How to do disabled true for any particular radio button , for some condition e.g Count is more than 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants