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

Focus on particular tab in page load

2 Answers 198 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Siva
Top achievements
Rank 1
Siva asked on 21 Dec 2012, 11:57 AM
am using telerik tab strip control in page2.aspx...am calling this page frompage1.aspx.... from there itself i want to mention the tab which i want to see first.in page1.aspx i have equal no of menu for each tab. for ex, if i click on 3rd menu then it shd redirect to page2.aspx and it shd focus on 3rd tab....



2 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 21 Dec 2012, 01:19 PM
Hello Siva,

I believe this TabStrip demo should help you achieve what you want.

http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/sitenavigation/defaultcs.aspx

I hope that helps.
0
Kalina
Telerik team
answered on 25 Dec 2012, 01:53 PM
Hello,

In order to set an initially selected Tab in RadTabStrip - you have to set the Selected property of the Tab.
If you use RadMultiPage along with the RadTabStrip - please set the RadMultiPage.SelectedIndex as well.
<telerik:RadTabStrip ID="RadTabStrip1" runat="server"
    MultiPageID="RadMultiPage1"
    SelectedIndex="1">
    <Tabs>
        <telerik:RadTab Text="Tab1" runat="server">
        </telerik:RadTab>
        <telerik:RadTab Text="Tab2" runat="server" Selected="True">
        </telerik:RadTab>
        <telerik:RadTab Text="Tab3" runat="server">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="1">
    <telerik:RadPageView runat="server" ID="RadPageView1">
        test 1
    </telerik:RadPageView>
    <telerik:RadPageView ID="RadPageView2" runat="server">
        test 2
    </telerik:RadPageView>
    <telerik:RadPageView ID="RadPageView3" runat="server">
        test 3
    </telerik:RadPageView>
</telerik:RadMultiPage>

Regards,
Kalina
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
Siva
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Kalina
Telerik team
Share this question
or