I have an Ext.tree.Panel which has a TreeStore . This tree is on the tab. The problem is that when my application loads all the trees used in the application, their data is loaded, even if the store is in autoLoad: false mode.
How can I prevent startup on a tree?
Ext.define('...', { extend: 'Ext.container.Container', alias: 'widget.listcontainer', layout: { type: 'vbox', align: 'stretch' }, items: [{ xtype: 'container', html: "...", border: 0 }, { xtype: '...', flex: 1, bodyPadding: 5, margin: '9 0 0 0' }] }); Ext.define('...', { extend: 'Ext.data.TreeStore', model: '...', proxy: { type: 'ajax', reader: { type: 'json', root: 'data' }, api: { read: 'some url' } } }); Ext.define('...', { extend: 'Ext.tree.Panel', alias: 'widget....', id: '...', title: '...', height: 400, collapsible: true, useArrows: true, rootVisible: false, multiSelect: true, singleExpand: true, autoScroll: true, store: '...', columns: [...] });
PS I found that if I changed rootVisible to true in the tree, then this problem does not occur, but then it shows the root node (which I do not need).