X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=fc00b05b0f411aad58a83079675bdc3eda13f31b;hb=1085a31aedf7d03ec3bceb5e4f4677bcf4d050c7;hp=fe6615e4e2b667afac1f1c5e97036f553a81bdc1;hpb=07a9b670c52f607dc0ab7211dada4afdce72e6e4;p=roojs1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index fe6615e4e2..fc00b05b0f 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -13020,6 +13020,17 @@ Roo.extend(Roo.data.JsonReader, Roo.data.DataReader, { records : records, totalRecords : totalRecords }; + }, + /** + * 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) + { + // expect rec just to be an array.. eg [a,b,c, [...] << cn ] + var data = typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn; + return this.loadData({ data : data, total : data.length }); + } });/* * Based on: