Hi , i am new to Telerik and web development. I have write a page that it contain a button, tabstrip and multipage. When the button click, it will dynamic create a new radtab and radpageview which contain contenturl. However, when i create the second tab and so on, the multipage will only show the radpageview that just created, the rest of the other tab become blank. For example: when i click the button,
test.aspx page show on the radpageview. Then i click the button again, test2.aspx page show, but test first tab which is test.aspx become blank.
Is there any way i can create the tab dynamically without losing the previous tab and the pageview content? thanks
and here is my testing Code.
protected void Button1_Click(object sender, EventArgs e)
{
RadTab rootTab = new RadTab();
TabStrip.Tabs.Add(rootTab);
rootTab.Text = TabStrip.Tabs.Count.ToString();
rootTab.PageViewID = "RadPageView" + TabStrip.Tabs.Count.ToString();
RadPageView newPageview = new RadPageView();
newPageview.Width = new Unit("100%");
newPageview.ID = "RadPageView" + TabStrip.Tabs.Count.ToString();
newPageview.ContentUrl = "test" + TabStrip.Tabs.Count.ToString() + ".aspx";
RadMultiPage1.PageViews.Add(newPageview);
}
test.aspx page show on the radpageview. Then i click the button again, test2.aspx page show, but test first tab which is test.aspx become blank.
Is there any way i can create the tab dynamically without losing the previous tab and the pageview content? thanks
and here is my testing Code.
protected void Button1_Click(object sender, EventArgs e)
{
RadTab rootTab = new RadTab();
TabStrip.Tabs.Add(rootTab);
rootTab.Text = TabStrip.Tabs.Count.ToString();
rootTab.PageViewID = "RadPageView" + TabStrip.Tabs.Count.ToString();
RadPageView newPageview = new RadPageView();
newPageview.Width = new Unit("100%");
newPageview.ID = "RadPageView" + TabStrip.Tabs.Count.ToString();
newPageview.ContentUrl = "test" + TabStrip.Tabs.Count.ToString() + ".aspx";
RadMultiPage1.PageViews.Add(newPageview);
}