This is a migrated thread and some comments may be shown as answers.

OnClientTabSelected undefined error

1 Answer 41 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 2
Bill asked on 02 Dec 2010, 04:52 PM
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?

1 Answer, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 2
answered on 02 Dec 2010, 06:23 PM
Nevermind... I corrected the error. It was a js error I had in the page.
Tags
TabStrip
Asked by
Bill
Top achievements
Rank 2
Answers by
Bill
Top achievements
Rank 2
Share this question
or