Home > Web Front-end > JS Tutorial > ext checkboxgroup backfill data solution_YUI.Ext related

ext checkboxgroup backfill data solution_YUI.Ext related

WBOY
Release: 2016-05-16 18:47:39
Original
1463 people have browsed it

Rewrite

Copy code The code is as follows:

//Solve the checkboxgroup backfill data problem
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;
}

}) ;
Related labels:
ext
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template