Hi,
I am using smartgwt version 13.0-p20230122.
We have few RadioGroupItem for which we have set "setUseNativeRadioItems" to false, so that user can unselect by clicking the item again. In previous versions (13.0-p20221105) these where working fine. But in the current version, they are getting displayed as selected on click. However, the value is getting set on click.
Below is the snapshot of the RadioGroupItem. When nothing is selected, the text box next to it is blank. When user selects the first option, we populate text box with the some data.
As you can see, the selection is happening, its just not displaying the selection.
I am using smartgwt version 13.0-p20230122.
We have few RadioGroupItem for which we have set "setUseNativeRadioItems" to false, so that user can unselect by clicking the item again. In previous versions (13.0-p20221105) these where working fine. But in the current version, they are getting displayed as selected on click. However, the value is getting set on click.
Below is the snapshot of the RadioGroupItem. When nothing is selected, the text box next to it is blank. When user selects the first option, we populate text box with the some data.
As you can see, the selection is happening, its just not displaying the selection.
Code:
final RadioGroupItem item= new RadioGroupItem("flag"); item.setUseNativeRadioItems(false); // allows radio item to be unselected item.setVertical(false); item.setFillHorizontalSpace(true); final FormItem handlerItem = new FormItem(); handlerItem.addChangeHandler(event -> { // just need this here so item change handler is fired }); item.setItemProperties(handlerItem); item.addChangeHandler(event -> { //Some logic });
Comment