Hopefully this is a simple question. I have a page with a RadTabStrip with 8 RadTab pages. When the page loads, it loads all 8 tab pages before display (a noticeable delay.) I'd like to only load the pages when the corresponding tab is selected by the user the first time. Each tab has a user control, and each user control populates in it's corresponding Page_Load method.
pseudo-code for the main page is:
pseudo-code for the main page is:
protected void Page_Init(){ foreach (usercontrol) { Control thisUC = LoadControl(usercontrol); RadPageView thisPV = new RadPageView(); thisPV.ID = usercontrol.ToString()+"PageView"; thisPV.Controls.Add(thisUC); ... RadMultiPage1.PageViews.Add(thisPV); RadTab thisTab = new RadTab(); thisTab.Text = usercontrol.ToString(); thisTab.PageViewID = usercontrol.ToString()+"PageView"; RadTabStrip1.Tabs.Add(thisTab); }}