Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Can't get RadioGroupItem's setValueDisabled to work

    I've been struggling to get RadioGroupItem's setValueDisabled to work. Here's my standalone test case:

    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();
        }
    }
    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.
    Last edited by deepfriedbrain; 22 Jan 2011, 09:26.

    #2
    Thanks for the test case. Your usage should be working fine - it turns out there's a breakage in the API.

    We've now fixed this internally. The fix will be present in the next nightly build (Jan 25). Let us know if that doesn't resolve it for you!

    Regards
    Isomorphic Software

    Comment


      #3
      Originally posted by Isomorphic
      Thanks for the test case. Your usage should be working fine - it turns out there's a breakage in the API.

      We've now fixed this internally. The fix will be present in the next nightly build (Jan 25). Let us know if that doesn't resolve it for you!

      Regards
      Isomorphic Software

      It seems not work yet.
      I've posted some debugging note in http://forums.smartclient.com/showpost.php?p=65057&postcount=6

      Comment

      Working...
      X