PDA

View Full Version : Radio group issue in IE



glidealong
11 Aug 2009, 4:58 AM
This is basically the same issue as reported in
http://extjs.com/forum/showthread.php?t=58816

I am having the same issue with 2.0.1 version.

Basically, if you have 2 groups of radio buttons, only one of the buttons in either of the groups can be selected.

The issue with 1.x seems to be fixed, but i dont think the same is in 2.0 branch.

Please update.

Thanks and Regards,
Hafiz

sven
11 Aug 2009, 5:01 AM
Moving to the GXT2 help forum. You posted in Ext JS2

glidealong
11 Aug 2009, 5:25 AM
Moving to the GXT2 help forum. You posted in Ext JS2
Oops, my bad, sorry for the mistake.
Thanks and Regards,
hafiz

Arno.Nyhm
12 Aug 2009, 6:01 AM
can you give some working sample maybe the error is in your code?
pls check if your RadioGroup has different names!

in which browsers (+version) you have this issue?


my example works for me:



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.yournamehere.client.forum.code.snippets;

import com.extjs.gxt.ui.client.widget.Window;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.form.Radio;
import com.extjs.gxt.ui.client.widget.form.RadioGroup;
import com.google.gwt.core.client.EntryPoint;

/**
*
* @author anonym
*/
public class ForumThread58816 implements EntryPoint {

public void onModuleLoad() {


new Window() {

{

add(new FormPanel() {

{
Radio radio1 = new Radio();
radio1.setName("radio1-1");
radio1.setBoxLabel("Red");
radio1.setValue(true);

Radio radio2 = new Radio();
radio2.setName("radio1-2");
radio2.setBoxLabel("Blue");

//First radio group
RadioGroup radioGroup = new RadioGroup("test"); // <--- check this name is unique
radioGroup.setFieldLabel("Favorite Color");
radioGroup.add(radio1);
radioGroup.add(radio2);
this.add(radioGroup);


Radio radio3 = new Radio();
radio3.setName("radio2-3");
radio3.setBoxLabel("High");
radio3.setValue(true);

Radio radio4 = new Radio();
radio4.setName("radio2-4");
radio4.setBoxLabel("Low");


//second radio group.
RadioGroup radioGroup2 = new RadioGroup("power"); // <--- check this name is unique
radioGroup2.setFieldLabel("Power");
radioGroup2.add(radio3);
radioGroup2.add(radio4);
this.add(radioGroup2);
}
});

}
}.show();
}
}