Results 1 to 4 of 4

Thread: Radio group issue in IE

  1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    40
    Vote Rating
    0
      0  

    Default Radio group issue in IE

    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

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Moving to the GXT2 help forum. You posted in Ext JS2

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    40
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by sven View Post
    Moving to the GXT2 help forum. You posted in Ext JS2
    Oops, my bad, sorry for the mistake.
    Thanks and Regards,
    hafiz

  4. #4
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    1
      0  

    Default

    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:

    PHP Code:
    /*
     * 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();
        }

    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts Search Results Advanced Search form Category overview http://www.extjs.com/forum/showthrea...041#post410041

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •