Java to get currently selected Tab

3 posts, 1 answers
  1. James Greaves
    James Greaves avatar
    5 posts
    Member since:
    Oct 2009

    Posted 20 Nov 2009 Link to this post

    Can some one please tel me if there is a way (java) to get the currently selected tab?


  2. Answer
    Paul avatar
    4281 posts

    Posted 20 Nov 2009 Link to this post

    Hello James Greaves,

    Please find below a sample code snippet that shows the needed approach.

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <script type="text/javascript">
            function getSelectedTab() {
                var tabstrip = $find('<%= RadTabStrip1.ClientID %>');
        <telerik:RadTabStrip runat="server" ID="RadTabStrip1" SelectedIndex="0">
                <telerik:RadTab runat="server" Text="Root RadTab1">
                <telerik:RadTab runat="server" Text="Root RadTab2">
                <telerik:RadTab runat="server" Text="Root RadTab3">
                <telerik:RadTab runat="server" Text="Root RadTab4">
                <telerik:RadTab runat="server" Text="Root RadTab5">
        <input id="Button1" type="button" value="button" onclick="getSelectedTab()" />

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
  4. Jeanne Kornkven
    Jeanne Kornkven avatar
    14 posts
    Member since:
    May 2008

    Posted 21 Jan 2015 in reply to Paul Link to this post

    Thank you!  That is what I needed.  In my case
     var selectedTab = tStrip.get_selectedTab().get_value();
Back to Top