Indexing Issue Tabs not change, page does.

2 posts, 0 answers
  1. Stephan
    Stephan avatar
    33 posts
    Member since:
    Jun 2012

    Posted 17 Jan 2012 Link to this post

    I have set up my tabcontrol, but when it runs it never moves off of the first one.  I think it has something to do with the
    selectedindex="0", but the builder didn't put anything in for that.  I tried the Javascript I found on here but that just generates
    an error that Microsoft JScript runtime error: Unable to get value of the property 'get_element': object is null or undefined
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0"
        ontabclick="RadTabStrip1_TabClick" Skin="Black">
            <telerik:RadTab runat="server" NavigateUrl="~/Default.aspx"
                Selected="True" Text="Home">
                    <telerik:RadTab runat="server" NavigateUrl="~/Careers.aspx"
                    <telerik:RadTab runat="server" NavigateUrl="~/ContactUs.aspx" 
                    <telerik:RadTab runat="server" NavigateUrl="~/About.aspx" 
                        Text="About Us">
            <telerik:RadTab runat="server" NavigateUrl="~/Service.aspx"
                    <telerik:RadTab runat="server" NavigateUrl="~/GetAQuote.aspx" 
                        Text="Get A Quote">
            <telerik:RadTab runat="server" NavigateUrl="~/Products.aspx"
                    <telerik:RadTab runat="server" NavigateUrl="~/pads.aspx"  Text="Pads">
                    <telerik:RadTab runat="server" NavigateUrl="~/holiday1.aspx" 
                        Text="Holiday Cards">
            <telerik:RadTab runat="server" NavigateUrl="~/Resources.aspx"
            <telerik:RadTab runat="server" NavigateUrl="~/Uploadafile.aspx"
                 Text="Up Load A File">
            <telerik:RadTab runat="server" BackColor="Transparent" Font-Bold="True"
                ForeColor="Red" Text="On-line Specials" NavigateUrl="~/Specials.aspx">
    <script type="text/javascript">
        function pageLoad() {
            var tabstrip = $find("RadTab");
            $telerik.$("a", tabstrip.get_element()).bind("focus", function () {
                var index = $telerik.$("a", tabstrip.get_element()).index(this);

  2. Kate
    Kate avatar
    1898 posts

    Posted 20 Jan 2012 Link to this post

    Hi Stephan,

    Pleas refer to the forum post below:

    All the best,
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top