roojs-ui.js
[roojs1] / roojs-debug.js
index 269bc33..1f06594 100644 (file)
@@ -43001,9 +43001,10 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
         this.setFromData(rec.data);
         
         
-        
         var lw = Math.floor(
-                ((this.listWidth * this.maxColumns || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')) / this.maxColumns
+             (
+               (this.listWidth * this.maxColumns || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')
+           ) / this.maxColumns
         );
         
         this.stores[opts.list+1].loadDataFromChildren( rec );
@@ -43018,6 +43019,10 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
         }
          
     },
+    
+    
+    
+    
     onDoubleClick : function()
     {
         this.collapse(); //??
@@ -43028,7 +43033,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
     
     
     // private
-    recordToStores : function(store, prop, value, stack)
+    recordToStack : function(store, prop, value, stack)
     {
         var cstore = new Roo.data.SimpleStore({
             //fields : this.store.reader.meta.fields, // we need array reader.. for
@@ -43049,7 +43054,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
             }
             if (r.data.cn && r.data.cn.length) {
                 cstore.loadDataFromChildren( r);
-                var cret = _this.recordToStores(cstore, prop, value, stack);
+                var cret = _this.recordToStack(cstore, prop, value, stack);
                 if (cret !== false) {
                     record = cret;
                    srec = r;
@@ -43076,8 +43081,10 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
     {
        // 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);
-       
+       this.recordToStack(this.store, this.valueField, this.getValue(), stack);
+       for (var i = 0; i < stack.length; i++ ) {
+           this.view[i].select(stack[i].store.indexOf(stack[i]), false, false );
+       }
        
     }