allow string based values for comboboxarray
[roojs1] / Roo / data / Store.js
index de1f861..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);
         }
@@ -399,8 +400,7 @@ Roo.extend(Roo.data.Store, Roo.util.Observable, {
         var r = o.records, t = o.totalRecords || r.length;
         
         this.fireEvent("beforeloadadd", this, r, options, o);
-        Roo.log('data options');
-        Roo.log(options);
+        
         if(!options || options.add !== true){
             if(this.pruneModifiedRecords){
                 this.modified = [];
@@ -450,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.