请问在ext2.0 如何创建  radiogroup?
我这样写
{
                xtype: 'radiogroup',
                fieldLabel: 'Auto Layout',
                items: [
                    {boxLabel: 'Item 1', name: 'rb-auto', inputValue: 1},
                    {boxLabel: 'Item 2', name: 'rb-auto', inputValue: 2, checked: true}
                ]
            }
为什么不可以呢?

解决方案 »

  1.   

    http://blog.csdn.net/cxhzqhzq/archive/2009/04/16/4085524.aspx
      你可以看看这个帖子 ,里面有radiogroup 的封装
      

  2.   

    没有'radiogroup'这个xtype,使用new Ext.form.RadioGroup这种方式创建吧new Ext.form.RadioGroup({
                      
                      fieldLabel: 'Auto Layout',
                      items: [
                      {boxLabel: 'Item 1', name: 'rb-auto', inputValue: 1},
                      {boxLabel: 'Item 2', name: 'rb-auto', inputValue: 2, checked: true}
                      ],
                      renderTo:'Enterprise_RegisterType_div'
                      })