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

RadTabStrip and Javascript

2 Answers 133 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 21 Aug 2008, 03:42 PM
I have copied part of the online tabstrip/javascript demo located at http://www.telerik.com/demos/aspnet/TabStrip/Examples/Programming/ClientSideAPI/DefaultCS.aspx but I am not getting the results I expect when I run the project.

If I try the original tab assignation in the example:

        function tabClicked() {
            var currentTab = <%= RadTabStrip1.ClientID %>.SelectedTab;
            var message = currentTab.Text;
            alert(message);
        }

I get the error - 'Text' is null or not an object at the "var message = " assignation line.

I also notice that the Visual Studio 2008 IDE indicates "Expected expression" when I hover over the "<" of  <%= RadTabStrip1...

Is there some vital step that I have missed or some fundamental error/assumption that I've made?

TIA,
John.


2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 25 Aug 2008, 01:14 PM
Hello John,

I think you're using RadTabStrip for ASP.NET AJAX, but you are looking at the examples for RadTabStrip for ASP.NET "Classic". I suggest you take a look at the following examples for RadTabStrip for ASP.NET AJAX:

All the best,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
John
Top achievements
Rank 1
answered on 25 Aug 2008, 03:44 PM
That was exactly my mistake - many thanks Paul.

John.
Tags
TabStrip
Asked by
John
Top achievements
Rank 1
Answers by
Paul
Telerik team
John
Top achievements
Rank 1
Share this question
or