`
lonestone
  • 浏览: 90839 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

ExtJS表单组件RadioGroup初始化(选中初始值、表单加载)的要点

 
阅读更多
折腾了一宿,没解决表单加载初始值,自动选中单选按钮组的问题,今早才查到资料,原来ext3.1已经修正了这个问题,但是需要的是给组和里面的单选按钮都要设置同样的name属性,我就是没有设定group的name,就悲剧了,这样设置即可:
{  
   xtype: 'radiogroup',
   fieldLabel: 'Auto Layout',
   name: 'rb-auto',
   items: [        
{boxLabel: 'Item 1', name: 'rb-auto', inputValue: 1},       
{boxLabel: 'Item 2', name: 'rb-auto', inputValue: 2, checked: true},        
{boxLabel: 'Item 3', name: 'rb-auto', inputValue: 3},        
{boxLabel: 'Item 4', name: 'rb-auto', inputValue: 4},       
{boxLabel: 'Item 5', name: 'rb-auto', inputValue: 5}    
]  
} 


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics