i have a problem with the tree panel and loading content via an ajax request. In order to understand my problem, I would like to outline the structure of my application.
At the top is a view port with the layout type "border". This contains a panel on the north region and a tab panel on center. The tab panel has two tabs. Each tab has a border layout type. On the west region is a tree panel and on center some grid views. The problem is the TreePanel. Both tabs has a tree panel to display a navigation. Both use the Ext.data.TreeStore to load a json via ajax proxy, that returns the nodes.
The problem is when creating the application and rendering the first tab, that already both requests were fired. And because the second tab is not shown, I always get an error message: me.view.el is undefined
The following settings I have already tried
- add defaults: {autoRender: false} to tabpanel
- add autoLoad: false, to Ext.data.TreeStore
Nothing works.
An additional information: I always define classes. each tab, each panel, each tree, each item is a class. Any idea or any suggestion?
I add the config parameter "activeItem" and set the value to "1" and i do not get an error anymore. Is the value "0" or anything else, i will get the error.
In addition, the first tab is still active (item 0), even if the value is set to 1.