From a9f068f7796a97ba3abd5978df9cd08b7257e813 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 10 Feb 2020 14:49:52 +0800 Subject: [PATCH] Roo/form/ComboNested.js --- Roo/form/ComboNested.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Roo/form/ComboNested.js b/Roo/form/ComboNested.js index bb7d336d50..a098c5c85c 100644 --- a/Roo/form/ComboNested.js +++ b/Roo/form/ComboNested.js @@ -302,9 +302,9 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { var lw = Math.floor( ((this.listWidth * this.maxColumns || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')) / this.maxColumns ); - var data = typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn; - var dl = typeof(data.data) != 'undefined' ? data.total : data.length; ///json is a nested response.. - this.stores[opts.list+1].loadData( data ); + + this.stores[opts.list+1].loadDataFromChildren( rec ); + var dl = this.stores[opts.list+1]. getTotalCount(); this.views[opts.list+1].getEl().setHeight( this.innerLists[0].getHeight()); this.views[opts.list+1].getEl().setStyle({ display : dl ? 'block' : 'none' }); this.innerLists[opts.list+1].setHeight( this.innerLists[0].getHeight()); @@ -322,7 +322,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { return this.findRecordInStore(this.store, prop,value); }, - // private + // private findRecordInStore : function(store, prop, value) { var cstore = new Roo.data.SimpleStore({ -- 2.39.2