Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I wanna ask some question about how to load Tab Control with many of tabs?
I'd implement it, but the responses's very slow.

Just like this :

- I have tabControl with 10 tabs on it.
- Each of tab contain variuos kinds of object, just say it datagrid and so on
- I click a menu to show the Tab Control,
- But guess what?, It need more than 6 seconds to be done.

What should i do with that?
Can anyone give me sample?

Thanks
Posted

1 solution

Implement lazybinding. That means , only the visible tabs are to be populated with data by default. All other tabs should be populated with data only if clicked or made visible.
 
Share this answer
 
Comments
satrio_budidharmawan 2-Jan-12 4:29am    
That what was I think,
But the datagrid on Tabs contain data which generated by value that I submit at first time.
So if I have to populated the other tabs later, how could I populated the data within datagrid?
satrio_budidharmawan 2-Jan-12 4:35am    
That what was I think, But the datagrid on Tabs contain data which generated by value that I submit at first time. So if I have to populated the other tabs later, how could I populated the data within datagrid?
bbirajdar 2-Jan-12 5:51am    
You need to postback the tabPanel you are selecting while navigating and save the data to the server side object or database every time you click a new tab.This way you can bind the other grids on server side as required. Use the AutoPostback property of TabContainer and set it to 'true'

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900