My requirement is to load the user control only when the user navigates between the tabs by clicking on a tab. By default, WebTab loads all the user control.I cannot afford loading all the user controls as our controls are extensive in UI and data. We plan to create 4 tabs.
Can this be achieved using the WebTab control? I would appreciate your response!
<ig:WebTab ID="WebTab1" runat="server" Height="200px" Width="300px">
Thanks Lyuba. We have planned not to use this control for our current requirement. Thank again for your co-operation.
Hello Ram,
Let us know if you need any additional assistance with this.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
You can “unload” the page by setting the ContentUrl to empty string, but the next time you go to this tab and load the page, it would be as you are loading this page for a first time(IsPostBack = false).
Thanks Lyuba for confirming back that it does not work using user controls.
I even see an issue using aspx pages. On clicking the second tab, the 2nd tab page loads but it does not unloads the 1st tab page. If the WebTab control for example, in my case has 4 tabs. After clicking all the 4 tabs, all the tab pages are loaded thereby increasing the page viewstate size dramatically. In my case, all the tab pages are extensive in UI and data.
Is there a way to unload the pages that are not active and load only the active tab one at a time?
Thank you for your co-operation.
You cannot have IsPostBack=false, when you click on the second tab, when you are using user controls, because the two user controls are on the same page, and the page is created the first time. You can implement this scenario by using aspx page inside the tab instead of using user control. I have modified your sample accordingly.
Hope this helps.
Lyuba Petrova