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

Get Tabstrip items Javascript

4 Answers 48 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Stevey
Top achievements
Rank 1
Stevey asked on 06 Oct 2008, 03:52 AM
Hi,

I'm using v3.6.5.0 of the TabStrip and am trying to get the value of each tab. I'm getting the following error message. "object doesn't support this property or method". I belive it's on the following line of code. alert(tabStrip.Tabs.item(i).value);

Can someone please suggestion how i can get the value of each tab item?
Code snippet below.

Thanks in advance!

function test()
{
    var tabStrip = <%=TabStrip.ClientID%>
    var text = tabStrip.SelectedTab.Value;  
 
    for ( var i=0; i < tabStrip.Tabs.length; i++)
    {        
        alert(tabStrip.Tabs.item(i).value);
    }    
      
}


4 Answers, 1 is accepted

Sort by
0
Stevey
Top achievements
Rank 1
answered on 06 Oct 2008, 04:07 AM
FYI, I have looked at this article and it doens't work for the version of TabStrip i'm using.

http://www.telerik.com/help/aspnet/tabstrip/tab_enumerate%20the%20tabs.html

0
Atanas Korchev
Telerik team
answered on 06 Oct 2008, 06:45 AM
Hello Stevey,

Please check this help topic.

Sincerely yours,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Stevey
Top achievements
Rank 1
answered on 06 Oct 2008, 06:48 AM
Hi,

I have checked that article and it doesn't work.
Can you please suggest something else?
0
Atanas Korchev
Telerik team
answered on 06 Oct 2008, 07:00 AM
Hello Stevey,

This is the officially supported and tested approach to enumerate the items of RadTabStrip "Classic".

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TabStrip
Asked by
Stevey
Top achievements
Rank 1
Answers by
Stevey
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or