Roo/form/ComboBoxArray.js
[roojs1] / Roo / form / ComboBoxArray.js
index 9dd28df..68fdf1e 100644 (file)
@@ -102,6 +102,11 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
         this.combo = Roo.factory(this.combo, Roo.form);
         this.combo.onRender(ct, position);
         
+        // assigned so form know we need to do this..
+        this.store          = this.combo.store;
+        this.valueField     = this.combo.valueField;
+        this.displayField   = this.combo.displayField ;
+        
         
         this.combo.wrap.addClass('x-cbarray-grp');
         
@@ -263,9 +268,6 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
     setValue: function(v) // not a valid action - must use addItems..
     {
          
-        Roo.log(v);
-        Roo.log(this.hiddenEl.dom.value);
-        Roo.log(this.el.dom.value);
         
         var _this = this;
         Roo.each(v, function(l) {
@@ -273,6 +275,14 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
         });
         
     },
+    setFromData: function(v)
+    {
+        Roo.log(v);
+      
+        
+    },
+    
+    
     validateValue : function(value){
         return Roo.form.ComboBoxArray.superclass.validateValue.call(this, this.getValue());