Roo/form/ComboBoxArray.js
[roojs1] / Roo / form / ComboBoxArray.js
index f237f96..bd3abee 100644 (file)
@@ -103,9 +103,9 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
         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.store          = this.combo.store;
+        this.valueField     = this.combo.valueField;
+        this.displayField   = this.combo.displayField ;
         
         
         this.combo.wrap.addClass('x-cbarray-grp');
@@ -268,7 +268,13 @@ Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
     setValue: function(v) // not a valid action - must use addItems..
     {
          
-        
+        Roo.log(v);
+        if (this.store.isLocal) {
+            // then we can use the store to find the values..
+            
+            
+            
+        }
         var _this = this;
         Roo.each(v, function(l) {
             _this.addItem(l);