EXTJS4中使用CheckboxGroup回填数据问题
2013-06-15 22:41
281 查看
查看文档为
setValue( Object value ) : Ext.form.CheckboxGroup
Sets the value of the radio group. The radio with corresponding name and value will be set. This method is simpler than Ext.form.CheckboxGroup.setValue because only 1 value is allowed for each
name.
Parameters
value : Object
The map from names to values to be set.
Returns
Ext.form.CheckboxGroup
this
对于我定义的CheckboxGroup
var rd_calc = new Ext.form.RadioGroup({
fieldLabel: '计算安全分',
width: 200,
items: [
{ name: 'into_calculation', inputValue: 'on', boxLabel: '是', checked: true },
{ name: 'into_calculation', inputValue: 'off', boxLabel: '否'}
]
});
回填的时候使用:
rd_calc.setValue({into_calculation:‘off’});//选择否,同理on为选择是。
红色部分为API中的Object
setValue( Object value ) : Ext.form.CheckboxGroup
Sets the value of the radio group. The radio with corresponding name and value will be set. This method is simpler than Ext.form.CheckboxGroup.setValue because only 1 value is allowed for each
name.
Parameters
value : Object
The map from names to values to be set.
Returns
Ext.form.CheckboxGroup
this
对于我定义的CheckboxGroup
var rd_calc = new Ext.form.RadioGroup({
fieldLabel: '计算安全分',
width: 200,
items: [
{ name: 'into_calculation', inputValue: 'on', boxLabel: '是', checked: true },
{ name: 'into_calculation', inputValue: 'off', boxLabel: '否'}
]
});
回填的时候使用:
rd_calc.setValue({into_calculation:‘off’});//选择否,同理on为选择是。
红色部分为API中的Object
相关文章推荐
- ext checkboxgroup 回填数据解决
- ext checkboxgroup 回填数据解决
- glmis项目工作日志4_解决RecyclerView中使用CheckBox时出现数据错乱的问题。
- ext checkboxgroup 回填数据解决
- MySQL中使用group_concat()函数数据字符过长报错的问题解决方法
- gridview中使用CheckBox,解决CheckBox数据加载错乱问题
- Mysql5.7中使用group concat函数数据被截断的问题完美解决方法
- listview中使用checkbox滑动或者加载更多数据错乱问题解决方案
- Spinner、CheckBox、RadioGroup的简单使用
- 使用RadioGroup+ViewPager+Fragment实现带滑动的页卡效果TabHost时遇到的问题
- 使用angularjs的$http.post异步提交数据时,服务器接收不了的问题
- struts2下使用checkbox的问题
- iOS开发中使用FMDB解决数据存储问题
- Oracle客户端使用sqlldr导数据中文乱码问题解决方法
- hive使用技巧(四)——巧用MapJoin解决数据倾斜问题
- 继checkBoxGroup之后的radioGroup取值和赋值问题
- 关于使用Iscroll.js异步加载数据后不能滑动到最底端的问题解决方案
- 使用SharedPreferences保存数据数据取出延迟或丢失的问题
- 使用hive重定向导出的数据文件中包含WARN日志记录问题