-
Notifications
You must be signed in to change notification settings - Fork 161
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
RadioButtonGroup is enabled when I setEnabled(false) in a grid #3767
Comments
Hello @jcgueriaud. Looks like a bug to me, the radio buttons should be disabled. I can't yet comment on a workaround, but I just have to ask the question: |
@pleku Isn't the use case quite obvious, you want to allow quick inline editing of the entities you display in the Grid? For OK/Not OK it might make more sense to use just checkbox, but make it a modern day sex property and you'll end up having male-female-other options, which still still fit well to desktop screen (depending on other visible columns of course). |
Thanks for your replies. For the workaround I was looking for something "inside" the component (disable an option inside the radiobutton or something else). I can use Combobox or select but the user has to click twice. For the workaround that's not a big deal, I will find something ;) |
as a workaround you can have |
After some debugging the problem is that when having a disabled RadioButtonGroup setting items makes the items not disabled. So having the items there on init makes them disabled, but if I do the following:
the added items will not be disabled. (This is basically what grid does as also) |
Created issue for the vaadin-radio-button component as the problem could be replicated directly on the client also. |
@mstahv, sure, I'm just a bit concerned about the UX with having radio buttons inside the grid, so I had to ask. |
Thanks for the workaround and your fast replies. |
When I add a disabled RadioButtonGroup column inside a grid I want a disabled radioButton.
Here a code sample for my use case:
Result: I can update the radioButtonGroup even it's disabled.
Is it normal ? Is there a workaround ?
Thanks
The text was updated successfully, but these errors were encountered: