This is a migrated thread and some comments may be shown as answers.

Dynamic controls in Tabstrip pages

4 Answers 100 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Eugene
Top achievements
Rank 1
Eugene asked on 03 Mar 2009, 06:34 PM
Dynamically created Tabs are visible, but cannot see the controls created in the page.  Many thanks in advance.
 

Below is the partial aspx code:

                  <telerik:RadPane ID="PaneFolderTabs" runat="server">
                    <telerik:RadTabStrip runat="server" ID="FolderTabs" Skin="Outlook" ScrollChildren="true"
                      MultiPageID="FolderPages" SelectedIndex="0" AutoPostBack="True">
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage runat="server" ID="FolderPages" Skin="Outlook" SelectedIndex="0"
                      BackColor="White" BorderWidth="1px">
                    </telerik:RadMultiPage>
                  </telerik:RadPane>

And the codebehind:

      RadTab tab1 = new RadTab("Profile1");
      FolderTabs.Tabs.Add(tab1);
      FolderTabs.MultiPageID = "FolderPages";
      FolderPages.SelectedIndex = 0;

      RadPageView page1 = new RadPageView();
      page1.ID = "Profile1";
      FolderPages.PageViews.Add(page1);
      TextBox textboxChild = new TextBox();
      page1.Controls.Add(textboxChild);

4 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 04 Mar 2009, 07:12 AM
Hi Eugene,

Please refer to this example for details on how to achieve your goal.

All the best,
Paul
0
Eugene
Top achievements
Rank 1
answered on 04 Mar 2009, 02:18 PM
I can create the tabs and pageviews on Page Load.  But does not help.... 

My issue is that tabs and controls are created much after Page_Load when user making a few selection.

The tabs become visible upon dynamic creation.  But the controls in pageview are not. 
0
Eugene
Top achievements
Rank 1
answered on 06 Mar 2009, 12:11 AM
I think my issue is related to Ajax Manager. 

Do I have to register my dynamic controls with Ajax Manager?
0
Paul
Telerik team
answered on 06 Mar 2009, 06:22 AM
Hello Eugene,

I'm afraid we cannot provide a solution unless we see your code. I suggest you open a support ticket and send us a simple running project demonstrating the issue.

Thanks,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TabStrip
Asked by
Eugene
Top achievements
Rank 1
Answers by
Paul
Telerik team
Eugene
Top achievements
Rank 1
Share this question
or