PDA

View Full Version : radio group - deselect when is read only



fother
9 Sep 2009, 4:15 AM
test on hosted mode - win vista [gxt 2.0.1 and gwt 1.7.0]


Radio radio = new Radio();
radio.setName("radio");
radio.setBoxLabel("Red");
radio.setValue(true);
radio.setReadOnly(true);

Radio radio2 = new Radio();
radio2.setName("radio");
radio2.setBoxLabel("Blue");
radio2.setReadOnly(true);

RadioGroup radioGroup = new RadioGroup("test");
radioGroup.setFieldLabel("Favorite Color");
radioGroup.add(radio);
radioGroup.add(radio2);
simple.add(radioGroup, formData);


how to reproduce: click in the radio "Blue" you will see that the radio "Red" will deselect and the radio "Blue" dont will select.. if you compile and use firefox, ie or chrome.. will see that the behaviour its diferent..

Luming Lai
16 Nov 2009, 2:22 AM
This should be in the bugs section, on IE8, users can unset the value of the radio even when read-only. Haven't tested with other multifields yet.