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

accessing child tabs with javascript

1 Answer 98 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
IrishManInUSA
Top achievements
Rank 1
IrishManInUSA asked on 01 Mar 2010, 03:36 PM
I have a tab strip where the first row is parent tabs

so tab1, tab2 and tab3

under each of these tabs I have child tabs, so tab1 would have

tab1_1, tab1_2, tab1_3

and so on.

How do I check to see if I am tab1_1 or tab1_2 or tab1_3 using javascript?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Mar 2010, 07:44 AM
Hello,

If you want to get the selected tab from client side then use the get_selectedTab() method of RadTabStrip client object. You can find out most important client methods and properties from the link below.
RadTabStrip object

If you want to get the tab which the mouse hovered, then you could use following code in OnClientMouseOver event handler.

JavaScript:
 
    function OnClientMouseOver(sender, args) { 
        var tab = args.get_tab(); 
        document.getElementById('Label1').innerHTML = tab.get_text(); 
    } 

-Shinu.
Tags
TabStrip
Asked by
IrishManInUSA
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or