RadTabStrip - selected tab

Posted on 2011-04-30
Last Modified: 2012-06-27
I have RadTabStrip from Telerik.
In a javascript function I would like to find the index of the selected tab. How is best to do that?
Question by:johnkainn
    LVL 10

    Accepted Solution


    function Enable()
           var tabStrip = <%= RadTabStrip1.ClientID %>;


    I hope it helps.

    Author Comment

    When I do this the alert message is "Undefined".
    What am I missing in this?  Attached is the code I am using.
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Test_Default2" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <head runat="server">
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function MyClick() {
                    var tabStrip = <%= RadTabStrip1.ClientID %>;
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" CssClass="tabset" EnableEmbeddedSkins="False"
            MultiPageID="RadMultiPage1" SelectedIndex="0">
                <telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="active" Text="Tab1"
                <telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="active" Text="Tab2">
                <telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="active" Text="Tab3">
        <input id="Button1" type="button" value="button" onclick="MyClick()" />

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now