by
5. January 2010 00:58
Basically when you close a tab TabPanel completely destroys it by default (and you can’t reopen closed tab).
To override this behavior add autoDestroy: false to your TabPanel settings object.
But when you try to close a tab you will see something like this:

That is, tab header is disappeared but the body still visible.
The problem is that you should process remove operation by yourself. Especially if you still want to hide tab body after closing the tab. To do this add two event handlers:
listeners: {
remove: function(tp, c) {
c.hide();
},
add: function(tp, c) {
c.show();
}
}
