extjs 初始化checkboxgroup值的代码
2011-09-21 00:00
465 查看
Ext.override(Ext.form.CheckboxGroup,{ setValueForItem : function(val){ //多个选项值以逗号分开的 val = ","+val+"," this.items.each(function(item) { if (val.indexOf(item.inputValue) > -1) { item.setValue(true); } else { item.setValue(false); } }); } ,clearValueForItem:function(){ // 清空所有值 this.items.each(function(item) { item.setValue(false); }); } });
相关文章推荐
- extjs 初始化checkboxgroup值的代码
- extjs中默认加载RadioGroup(单选框)的初始化值
- EXTJS 4.2 资料 控件之checkboxgroup的用法(动态数据)
- extjs中默认加载RadioGroup(单选框)的初始化值
- ExtJs 入门教程十[单选组:RadioGroup、复选组:CheckBoxGroup]
- Extjs3.0 checkboxGroup 动态添加item实现思路
- (13)ExtJS之Ext.form.field.RadioGroup、Ext.form.field.CheckboxGroup
- extjs中默认加载RadioGroup(单选框)的初始化值
- 无废话ExtJs 入门教程十[单选组:RadioGroup、复选组:CheckBoxGroup]
- c# 代码生成6个checkbox 并初始化已知的一个数组到checkboxtext内
- 关于extjs checkboxgroup 数据修改时候数据匹配加载
- ExtJS 动态添加checkboxgroup
- ExtJs扩展之GroupPropertyGrid代码
- ExtJS3.4.0 radioGroup,checkboxgroup 在 getForm().getValues()取值问题的解决方案
- Extjs grid checkbox 根据数据初始化选中
- Extjs3.0 checkboxGroup 动态添加
- ExtJS——继承CheckboxGroup,添加远程获取item的功能
- Extjs初始化/提交Ext.form.FormPanel,表单中包含textfield,textarea,radio,checkbox,combo等
- Extjs checkboxgroup 取值