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

Which Child tab in Selected

1 Answer 73 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Roger Barnes
Top achievements
Rank 1
Roger Barnes asked on 19 Sep 2008, 04:36 PM

On clientside how can I tell if a child tab is selected when itterating the RadTabCollection

 function LoadSelected(sender, eventArgs)
    {
    var tab = eventArgs.get_tab();
   
    //If we don't have any child tabs, we'll exit
    var TabSubCount = tab.get_tabs().get_count();
    if ( TabSubCount == 0 ) { return false; }
  
   
    for (var i = 0; i < TabSubCount; i++)
        {
            How to tell if tab.get_tabs().getItem(i) is selected ?
             Something like
              alert(tab.get_tabs().getItem(i).selected);  
        }
    }

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Sep 2008, 07:44 AM
Hi Roger,

You can access the selected tab on the client side as shown below.

JS:
 var tabstrip = $find('<%= RadTabStrip1.ClientID %>')               
 var selectedTab = tabstrip.get_selectedTab();   
  alert(selectedTab.get_value());   


Thanks
Princy.
Tags
ToolTip
Asked by
Roger Barnes
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or