Roo/form/ComboBoxArray.js
authorEdward <edward@roojs.com>
Tue, 18 Feb 2014 08:43:58 +0000 (16:43 +0800)
committerEdward <edward@roojs.com>
Tue, 18 Feb 2014 08:43:58 +0000 (16:43 +0800)
Roo/form/ComboBoxArray.js

index 52a48df..2dce2a9 100644 (file)
@@ -416,6 +416,18 @@ Roo.extend(Roo.form.ComboBoxArray.Item, Roo.BoxComponent, {
         this.el.child('img').un('click', this.remove, this);
         this.el.remove();
         this.cb.updateHiddenEl();
+    },
+    
+    /**
+     * Validates the field value
+     * @return {Boolean} True if the value is valid, else false
+     */
+    validate : function(){
+        if(this.disabled || this.validateValue(this.processValue(this.getValue()))){
+            this.clearInvalid();
+            return true;
+        }
+        return false;
     }