this.panel = Ext.create({//构造面板
name: 'objectForm',
xtype:'form',
frame: true,
items: [{
xtype: 'radiogroup',
fieldLabel: '对象类型',
items: [
{xtype:'radio',boxLabel: '机构', name: 'sjob', inputValue:'0',checked: true},
{xtype:'radio',boxLabel: '人员', name: 'sjob', inputValue:'1'}
]
}]
});默认机构选中,但是我选择不上人员按钮,如果把inputValue设置成1和2,那就可以切换!
请各位大牛赐教
解决方案 »
- JavaScript中看到个很奇怪的数组vararr[0] = ['学校要闻','1','0']
- 使用JavaScript设计一个可以将身份证号从15位转为18位的网页
- 有谁用过google浏览器的的javaseript浏览器的调试功能
- 有时候,登录某些网站时,浏览器弹出一个窗口,要输入用户名和密码,这是怎么实现的?
- 请问TT是什么啊,令人抓狂,出自我同事考我的一个变态题目
- 动态radio组
- -------------------------菜鸟来学习,大神来指教----------关于js函数调用的问题
- 超链接出来的窗口怎么没有滚动条?
- 怎么改我的程序才能使性能更好?
- 求救,help
- 急求解决方法 鼠标移动太快时 onmouseout事件无法触发
- js 获取当前鼠标位置
title: 'RadioGroup Example',
width: 300,
height: 125,
bodyPadding: 10,
renderTo: Ext.getBody(),
items:[{
xtype: 'radiogroup',
fieldLabel: 'Two Columns',
// Arrange radio buttons into two columns, distributed vertically
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' }
]
}]
});
这需要原因么?