Author |
Message |
22/07/2015 05:52:58
|
mbreyer
Power User
Joined: 02/07/2013 16:08:31
Messages: 42
Location: Cologne
Offline
|
Hi,
we have a tree in a fixgrid.
For single selection of a row our customer wants to have radiobuttons in every row of this grid.
The refvalue is the id of the represented object.
Through a function it is possible to delete the selected object.
As a result the row is removed and the shared value in this group changes to -1.
Of course there is no radiobutton representing this value, but in swing the radiobutton which replaced the removed radiobutton looks like it is selected.
I know that this behaviour is normal in swing, as it cannot change back to nothing selected if there was selected something sometime.
As there is no Logical defaultvalue I wanted to place a radiobutton outside of the grid, which should represent this -1.
Somehow the dynamically rendered radiobuttons in the grid and the static radiobutton don't work together in one Group, as they can be changed indepently. (group is equal)
I added more static radiobuttons and an other grid with dynamic radiobuttons to check this and it really looks like there are now two radiobutton groups with the same name on the same page.
One for the dynamically rendered and one for the static ones.
Is that the intended behaviour?
In my mind the group should be unique on each page, no matter if the radiobuttons are static or dynamically rendered.
kind regards
Mario
|
|
|
22/07/2015 05:58:04
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
it's "always the same" - things always happen twice...:
We just had the same problem with another user - and I was astonished to really find out that Swing does not remove the selection by default. We found a solution for this problem (if all radio buttons are unselected then we also do an unselect on group level), and added this to 20150706.
So the problem is solved if installing the current update.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
22/07/2015 06:06:37
|
mbreyer
Power User
Joined: 02/07/2013 16:08:31
Messages: 42
Location: Cologne
Offline
|
Hi,
wow that was the fastest Bugfix ever.
We will try the current update, thanks.
Regards
Mario
|
|
|
|