PDA

View Full Version : ExtJs 4.0.2 formBind: true



prout_boudin
12 Jun 2011, 10:02 PM
Dear,

Since 4.0.2 formBind: true is not working anymore.
The example : Loading/Saving a Dynamic Form using XML is perferctly working on ext 4.0.1 but not anymore on 4.0.2

DDarko
12 Jun 2011, 10:17 PM
http://www.sencha.com/forum/showthread.php?136576-extjs-4.0.2

ldonofrio
28 Jun 2011, 7:50 AM
I was having problems showing a window form, the formBind button is not disabled initially.

This is my override (using the dbradicich override too). Basically i'm forcing the form validity check before the FormPanel renders.



Ext.override(Ext.form.Basic, {
getBoundItems: function() {
var boundItems = this._boundItems;
if (!boundItems || boundItems.getCount() == 0) {
boundItems = this._boundItems = Ext.create('Ext.util.MixedCollection');
boundItems.addAll(this.owner.query('[formBind]'));
}
return boundItems;
},
initialize: function(){
this.callOverridden();
this.owner.on('beforerender', this.checkValidity, this);
}
});