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

Want to add different tabs in existing tab of tabstrip.

2 Answers 76 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Simon Maystre
Top achievements
Rank 1
Simon Maystre asked on 11 Nov 2011, 07:28 AM
Hi Telerik Team,

I am adding different tabs in existing tab of RadTabStrip dynamically, but i am unable to see the tabs in existing tab.

Can you please provide me the proper solution on above scenario.?


Thanks and Regards,
Simon.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Nov 2011, 08:21 AM
Hello Simon,

Check the following help documentation which explains how to create tabs dynamically.
Working With Tabs Using Server-Side Code.

-Shinu.
0
Kate
Telerik team
answered on 15 Nov 2011, 03:13 PM
Hello Simon,

Can you clarify what you mean by "the tabs in existing tab". Are these tabs hierarchical? If so, one way you could access hierarchical tabs is by using indexes. For instance having the following markup, you can access the first child tab using the code below:

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
            Skin="Default">
            <Tabs>
                <telerik:RadTab Text="tab1" PageViewID="RadPageView1" Value="tab1">
                    <Tabs>
                        <telerik:RadTab Text="tab1.1" Value="tab11">
                        </telerik:RadTab>
                        <telerik:RadTab Text="tab1.2">
                        </telerik:RadTab>
                        <telerik:RadTab Text="tab1.3">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTab>
                <telerik:RadTab Text="tab2" PageViewID="RadPageView2">
                </telerik:RadTab>
                <telerik:RadTab Text="tab3" PageViewID="RadPageView3">
                </telerik:RadTab>
                <telerik:RadTab Text="tab4" PageViewID="RadPageView4" Selected="True">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
 
code behind:
RadTabStrip1.Tabs[0].Tabs[0].Visible = false;


Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TabStrip
Asked by
Simon Maystre
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Kate
Telerik team
Share this question
or