allow string based values for comboboxarray
[roojs1] / Roo / data / Store.js
index e30e245..7cc3272 100644 (file)
@@ -233,6 +233,7 @@ Roo.extend(Roo.data.Store, Roo.util.Observable, {
     remove : function(record){
         var index = this.data.indexOf(record);
         this.data.removeAt(index);
         if(this.pruneModifiedRecords){
             this.modified.remove(record);
         }
@@ -343,7 +344,6 @@ Roo.extend(Roo.data.Store, Roo.util.Observable, {
     load : function(options){
         options = options || {};
         if(this.fireEvent("beforeload", this, options) !== false){
-            Roo.log(options);
             this.storeOptions(options);
             var p = Roo.apply(options.params || {}, this.baseParams);
             // if meta was not loaded from remote source.. try requesting it.
@@ -433,10 +433,6 @@ Roo.extend(Roo.data.Store, Roo.util.Observable, {
         }
             
         this.fireEvent("load", this, r, options, o);
-        
-        Roo.log(options);
-        Roo.log(options.callback);
-        
         if(options.callback){
             options.callback.call(options.scope || this, r, options, true);
         }
@@ -454,6 +450,16 @@ Roo.extend(Roo.data.Store, Roo.util.Observable, {
         var r = this.reader.readRecords(o);
         this.loadRecords(r, {add: append}, true);
     },
+    
+     /**
+     * using 'cn' the nested child reader read the child array into it's child stores.
+     * @param {Object} rec The record with a 'children array
+     */
+    loadDataFromChildren : function(rec)
+    {
+        this.loadData(this.reader.toLoadData(rec));
+    },
+    
 
     /**
      * Gets the number of cached records.