remove : function(record){
var index = this.data.indexOf(record);
this.data.removeAt(index);
+
if(this.pruneModifiedRecords){
this.modified.remove(record);
}
// private
// Called as a callback by the Reader during a load operation.
loadRecords : function(o, options, success){
- Roo.log(o);
- Roo.log(options);
- Roo.log(success);
if(!o || success === false){
if(success !== false){
this.fireEvent("load", this, [], options, o);
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.