var _this = this;
- Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){
- this.getActionEl().addClass(this.disabledClass);
- this.el.dom.disabled = true;
-
- e.findParent('.form-group', false, true).removeClass([_this.invalidClass, _this.validClass]);
- e.findParent('.form-group', false, true).addClass(_this.invalidClass);
- });
+ if(this.rendered){
+ Roo.each(this.el.up('form').select('input[name='+this.name+']', true).elements, function(e){
+ _this.getActionEl().addClass(this.disabledClass);
+ _this.el.dom.disabled = true;
+ });
+ }
this.disabled = true;
this.fireEvent("disable", this);