ext checkboxgroup 回填数据解决

时间:2009-08-21    点击:106   
重写
复制代码 代码如下:

//解决checkboxgroup回填数据问题
Ext.override(Ext.form.BasicForm,{
findField : function(id){
var field = this.items.get(id);
if(!field){
this.items.each(function(f){
if(f.isXType('radiogroup')||f.isXType('checkboxgroup')){
f.items.each(function(c){
if(c.isFormField && (c.dataIndex == id || c.id == id || c.getName() == id)){
field = c;
return false;
}
});
}

if(f.isFormField && (f.dataIndex == id || f.id == id || f.getName() == id)){
field = f;
return false;
}
});
}
return field || null;
}

});
JavaScript 获取用户客户端操作系统版本
JS 获取span标签中的值的代码 支持ie与firefox
jquery 表单进行客户端验证demo
JS 时间显示效果代码
JQuery this 和 $(this) 的区别
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved