Focus on particular tab in page load

3 posts, 0 answers
  1. Siva
    Siva avatar
    1 posts
    Member since:
    Dec 2012

    Posted 21 Dec 2012 Link to this post

    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. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 21 Dec 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 25 Dec 2012 Link to this post

    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.
Back to Top