Taken from the GXT-Explorer:
Code:
...
Radio radio = new Radio();
radio.setName("radio");
radio.setFieldLabel("Red");
radio.setValue(true);
Radio radio2 = new Radio();
radio2.setName("radio");
radio2.setFieldLabel("Blue");
...
The "name"-attributes remain empty, what leads to the problem that all Radios in the whole UI share the same name and only one of all Radios can be checked at a time.
HTML Code:
....
<td align="left" style="vertical-align: top;">
<div id="my-174" class="x-form-check-wrap x-form-field" hidefocus="hideFocus">
<input class="x-form-radio" type="radio" name="" style="margin-top: 3px;"/>
</div>
</td>
<td align="left" style="vertical-align: top;">
<div id="my-175" class="x-form-group-label">Red</div>
</td>
<td align="left" style="vertical-align: top;">
<div id="my-176" class="x-form-check-wrap x-form-field" hidefocus="hideFocus">
<input class="x-form-radio" type="radio" name="" style="margin-top: 3px;"/>
</div>
</td>
<td align="left" style="vertical-align: top;">
<div id="my-177" class="x-form-group-label">Blue</div>
</td>
...
