I've been struggling to get RadioGroupItem's setValueDisabled to work. Here's my standalone test case:
When the application runs, all 3 values are enabled. Am I missing something?
I'm using SmartGWT version 2.4 1/6/2011 nightly. Tested with IE 8, FF 3.6.2, Chrome 8x on Windows XP SP3.
Thanks.
Code:
package com.dfb.test.client; import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.widgets.events.DrawEvent; import com.smartgwt.client.widgets.events.DrawHandler; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.widgets.form.fields.RadioGroupItem; import com.smartgwt.client.widgets.layout.VLayout; public class TestScrollbar implements EntryPoint { public void onModuleLoad() { VLayout rootVLayout = new VLayout(); DynamicForm form = new DynamicForm(); final RadioGroupItem typeRadioGroup = new RadioGroupItem(); typeRadioGroup.setValueMap("value1", "value2", "value3"); form.setItems(typeRadioGroup); rootVLayout.addMember(form); form.addDrawHandler(new DrawHandler(){ public void onDraw(DrawEvent event) { typeRadioGroup.setValueDisabled("value2", true); } }); rootVLayout.draw(); } }
I'm using SmartGWT version 2.4 1/6/2011 nightly. Tested with IE 8, FF 3.6.2, Chrome 8x on Windows XP SP3.
Thanks.
Comment