I have a check box and a radio button group which depends on the check box's value. When check box is checked, radio button group is enabled. Otherwise it's disabled. Initial value of CB is unchecked so radio button group is disabled on start.
Problem :
When check box is checked, radio group is enabled but the titles of it's values are not.
This issue can be reproduced only if radio group is disabled on start.
Note : masterChkB and userReplyRGI must be properties of the class that contains this method.
I'm using GWT2.0.2, SmartGWT2.1, Chrome 4.1.249.1045, Windows 7 Ultimate 32bit
Problem :
When check box is checked, radio group is enabled but the titles of it's values are not.
This issue can be reproduced only if radio group is disabled on start.
Code:
public Canvas getViewPanel() { Canvas canvas = new Canvas(); canvas.setWidth100(); canvas.setHeight100(); DynamicForm dynamicForm = new DynamicForm(); masterChkB = new CheckboxItem("master", "Master ChkB"); userReplyRGI = new RadioGroupItem("userReply" , "User Reply"); userReplyRGI.setVertical(false); userReplyRGI.setValueMap("confirmed", "declined", "no reply"); userReplyRGI.setDefaultValue("confirmed"); userReplyRGI.setWrap(false); userReplyRGI.setWrapTitle(false); userReplyRGI.setDisabled(true); dynamicForm.setFields(masterChkB, userReplyRGI); masterChkB.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { if(masterChkB.getValue() != null && masterChkB.getValueAsBoolean()) { userReplyRGI.setDisabled(false); } else if(masterChkB.getValue() != null && !masterChkB.getValueAsBoolean()) { userReplyRGI.setDisabled(true); } } }); canvas.addChild(dynamicForm); return canvas; }
I'm using GWT2.0.2, SmartGWT2.1, Chrome 4.1.249.1045, Windows 7 Ultimate 32bit
Comment