09 2011 档案

items中多个checkgroup在IE6下无法完整显示
摘要:旧代码如下:1Ext.fxpg=Ext.extend(Ext.form.FormPanel,{2labelWidth:135,3region:"center",4bodyStyle:'position:relative;',5frame:true,6initComponent:function(){7this.items=[{xtype:'checkboxgroup',8fieldLabel:'1)、对象曾经的经历',9name:'ddcjdjl',10id:'ddcjdjlId',11colu 阅读全文

posted @ 2011-09-27 16:56 易木 阅读(210) 评论(0) 推荐(0) 编辑

初始化checkboxgroup值
摘要:1Ext.override(Ext.form.CheckboxGroup,{23setValueForItem:function(val){//多个选项值以逗号分开的4val=","+val+","5this.items.each(function(item){6if(val.indexOf(item.inputValue)>-1){7item.setValue(true);8}else{9item.setValue(false);10}11});12}13,clearValueForItem:function(){ //清空所有值14this.i 阅读全文

posted @ 2011-09-21 15:31 易木 阅读(612) 评论(0) 推荐(0) 编辑

获取表单中checkboxgroup所有选中值
摘要:var fxpgForm = tabpanel.getItem("fxpgTabId"); try{ var tableArr = []; var groups = fxpgForm.findByType('checkboxgroup'); var chks = null; var gLength = 0; gLength = groups.length; for (var i = 0; i < gLength; i++) { chks = groups[i].items; chks.each(function(f){ if(f.ch... 阅读全文

posted @ 2011-09-19 20:58 易木 阅读(1891) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示