different TreePanel alternatively in the same place
I'm building a desktop application using EXTJs 3.4. I have a window with border layout which is splitted into two sections: at the left there is a TreePanel, at the right a TabPanel. In the left side I need to visualize two different TreePanel objects (containing different elements) depending on different situations. I have put both tree panel as items in desktop window:
where trElems and trSearchRes are the two TreePanels that I want to visualize alternatively.
Then I put SetVisible(true) or SetVisible(false) of the the trees dipending on the situation but it's not working because noone of the two trees is visualized.
How can I do this otherwise?