accessing child tabs with javascript

2 posts, 0 answers
  1. IrishManInUSA
    IrishManInUSA avatar
    27 posts
    Member since:
    Jun 2008

    Posted 01 Mar 2010 Link to this post

    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?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Mar 2010 Link to this post


    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.

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

Back to Top