Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1740
Loading an user control on click of the tab
posted

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">

 

<Tabs>

 

<ig:ContentTabItem runat="server" Text="Tab 1" UserControlUrl="WebUserControl1.ascx">

 

</ig:ContentTabItem>

 

<ig:ContentTabItem runat="server" Text="Tab 2" UserControlUrl="WebUserControl2.ascx">

 

</ig:ContentTabItem>

 

</Tabs>

 

</ig:WebTab>

 

 

 

 

 

 

 

Parents
No Data
Reply
  • 6748
    Suggested Answer
    posted

    Hello Ram,

     

    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.

     

    Regards,

    Lyuba Petrova

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

     

    InfragisticsWebTab1.zip
Children