Extjs 获取 radiogroup 选中项的值
2013-07-22 17:13
363 查看
Extjs 获取 radiogroup 选中项的值 网上流传重定义radiogroup 的getValue 其实没这么复杂 如下可耶:
{
xtype: 'radiogroup',
fieldLabel: '显示',
id: 'rgx',
labelWidth: 30,
width: 200,
listeners: {
change: function () {
alert(Ext.getCmp('rgx').lastValue.isshare); //这一行可以显示选中的值 0 或 1 关键是 .lastValue
}
},
items: [{
name: 'isshare',
inputValue: '1',
boxLabel: '共享文档',
checked: true
}, {
name: 'isshare',
inputValue: '0',
boxLabel: '我的文档'
}]
}
{
xtype: 'radiogroup',
fieldLabel: '显示',
id: 'rgx',
labelWidth: 30,
width: 200,
listeners: {
change: function () {
alert(Ext.getCmp('rgx').lastValue.isshare); //这一行可以显示选中的值 0 或 1 关键是 .lastValue
}
},
items: [{
name: 'isshare',
inputValue: '1',
boxLabel: '共享文档',
checked: true
}, {
name: 'isshare',
inputValue: '0',
boxLabel: '我的文档'
}]
}
相关文章推荐
- extjs的radiogroup单选按钮获取选中值的方法
- Extjs radiogroup 获取选中
- Extjs中RadioGroup的获取值和赋值
- 关于获取RadioGroup里面的RadioButton的值,多行RadioGroup展示清除选中效果
- 自定义RadioGroup动态添加RadioButton,并获取选中radioButton的位置
- Android 如何获取RadioGroup选中RadioButton的内容
- DevExpress中XtraEditors.RadioGroup 控件如何保存获取选中的值及读取数据库中的值
- Android 如何获取RadioGroup选中RadioButton的内容
- Extjs中获取RadioGroup的值
- extjs 2.0获取选中的radio的值
- RadioGroup获取到上一个选中的radioBtnID实现还原选中上一个radiobtn
- ExtJS 获取radioGroup及CheckboxGroup值
- Android 如何获取RadioGroup选中RadioButton监听
- Extjs中RadioGroup的获取值和赋值
- ExtJS表单组件RadioGroup属性用法(选中初始值、表单加载,选中取值)的要点
- 使用Jquery获取Bootstrap Radio Group当前选中的单选框的值
- ExtJs中Radio和radiogroup获取值
- ExtJS 获取单选按钮的值 radiogroup 获取值 fieldset(radio) 获取值
- ExtJS 获取单选按钮的值 radiogroup 获取值 fieldset(radio) 获取值
- extjs4.1获取radiogroup选中值