PDA

View Full Version : [SOLVED][2.2] FormPanel.enable() enables disable=true components



buglierjul
12 Sep 2008, 2:39 AM
Dear all,

I have a FormPanel which contains some components with disabled = true default value. This FormPanel is disabled by default.

When I call FormPanel.enable(). The FormPanel and its components are all enabled ! But I want to keep them disabled.

Why should FormPanel.enable() function do it?

Thanks

13 Sep 2008, 6:54 AM
look at the source:

// private
onEnable : function(){
Ext.FormPanel.superclass.onEnable.call(this);
if(this.form){
this.form.items.each(function(){
this.enable();
});
}
},


to disable, simply override the onEnable method.