OnClientTabSelected undefined error

2 posts, 0 answers
  1. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 02 Dec 2010 Link to this post

    I am using ASP.Net 3.5 and version 2009.3.1314.35 of the Telerik tools. When I run the page, I get the attached error (look on the right hand side of the page). As you can see, the runtime js does contain that event. 

    I have the following code in my html:

    <code>
    <telerik:RadTabStrip ID="tsCoding" runat="server" Align="Left" MultiPageID="RadMultiPage1"
                                                                                        SelectedIndex="0" OnClientTabSelected="tsCoding_OnClientTabSelected" AutoPostBack="false"
                                                                                        CausesValidation="false" ScrollButtonsPosition="Right" BackColor="Gray">
    </code>

    I have the following in my js:

    <code>

    function tsCoding_OnClientTabSelected(sender, args) {

                    var tab = args.get_tab();
                    if (tab.get_tabs().get_count() != 0) {
                        tab.get_tabs().getTab(0).enable();
                        tab.get_tabs().getTab(0).select();
                    }
                }


    </code>

    When I remove the OnClientTabSelected="tsCoding_OnClientTabSelected" from the tabstrip, the page works fine. Having it in there causes the attached error.

    What do I need to do to resolve the error?
  2. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 02 Dec 2010 Link to this post

    Nevermind... I corrected the error. It was a js error I had in the page.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top