roojs-ui.js
[roojs1] / roojs-debug.js
index d27ac0d..414b6ba 100644 (file)
@@ -42997,9 +42997,9 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
         }
         
         var rec = view.store.getAt(ix[0]);
-        if (!this.isLoading) {
+        //if (!this.isLoading) {
             this.setFromData(rec.data);
-        }
+        //}
         
         
         var lw = Math.floor(
@@ -43014,7 +43014,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
         this.list.setWidth(lw * (opts.list + (dl ? 2 : 1)));
         
         if (this.isLoading) {
-            this.selectActive(opts.list);
+           // this.selectActive(opts.list);
         }
          
     },
@@ -43044,6 +43044,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
         store.each(function(r){
             if(r.data[prop] == value){
                 record = r;
+               srec = r;
                 return false;
             }
             if (r.data.cn && r.data.cn.length) {
@@ -43073,9 +43074,10 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
     
     selectActive : function ()
     {
-        
-       var stack = [];
-       var rec =  this.findRecordInStore(this.store, this.hiddenName, this.getValue());
+       // if store is not loaded, then we will need to wait for that to happen first.
+        var stack = [];
+       this.findRecordInStore(this.store, this.hiddenName, this.getValue(), stack);
+       
        
     }