tabsheet loading

I have 4 levels of tabsheets.when i am clicking on 1st level tab second level tabsheet should visible.
It is working fine.But sublevel tabsheet tabs contain data which is from DB.
So it is taking so much time to load the tabsheet.
how to set when we click on tab only we data should be load.?

thanks&regards

Vamshi

You have to initialize your tabs with an empty panel, except for the top one, obviously.
Make your tabs listen to the tab change event. When your tab comes up, look up the information and set the panel content with what you want.

When changing tabs, you may want to remove what was in the previous tab (keep a reference to the current tab, and clean it up as soon as you enter a new tab). Be especially careful with database connections.