如题

解决方案 »

  1.   

    var group= Ext.create("Ext.form.RadioGroup",{
            xtype: 'radiogroup',
            fieldLabel: 'Two Columns',    
            columns: 2,
            vertical: true,
            items: [
                { boxLabel: 'Item 1', name: 'rb', inputValue: '1' },
                { boxLabel: 'Item 2', name: 'rb', inputValue: '2', checked: true},
                { boxLabel: 'Item 3', name: 'rb', inputValue: '3' },
                { boxLabel: 'Item 4', name: 'rb', inputValue: '4' },
                { boxLabel: 'Item 5', name: 'rb', inputValue: '5' },
                { boxLabel: 'Item 6', name: 'rb', inputValue: '6' }
            ]
        });var r=new Ext.form.field.Radio({ boxLabel: 'Item 7', name: 'rb', inputValue: '7' });
    group.add(r);
      

  2.   

    我使用的是EXTJS3.0 Ext.form.field.RadioGroup好像没有这个方法