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

How can I tell which Child tab is selected?

3 Answers 89 Views
TabStrip
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:45 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);  
        }
    }

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 22 Sep 2008, 06:47 AM
Hi Roger,

I suggest you use get_selected() client-side method to find if child tab is selected like this:

alert(tab.get_tabs().getItem(i).get_selected()); 

Best wishes,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Roger Barnes
Top achievements
Rank 1
answered on 22 Sep 2008, 04:55 PM
That's what I needed, although I was unable to find get_selected in the documentation for a tab itself, I did see it for the TabStrip, but not the tab itself.

At any rate, that's what I needed.

Thanks
0
Yana
Telerik team
answered on 23 Sep 2008, 08:14 AM
Hi Roger,

I am glad I could help. You are right that this method is not documented, we will update our documentation.

Thank you for your report, you can find your points updated.

Regards,
Yana
the Telerik team

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