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

Programmatically selecting the next tab

1 Answer 74 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Olga
Top achievements
Rank 1
Olga asked on 17 Feb 2011, 05:44 AM
Hi,

I need to be able to select a tab using a button ("Next") rather than just selecting it.  I have the following code with the last two lines coming from the Classic.

var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
var tab = tabStrip.AllTabs[tabStrip.SelectedIndex + 1];
tab.Select();

I get "AllTabs is null or not an object".  I realise that it is old syntax, but I can't find what I can replace it with.

Thanks,
Olga

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 17 Feb 2011, 09:44 AM
Hello Olga,

You can use the get_allTabs() method which returns a linear collection of all tabs.

Refer the following documentation for more information.
RadTabStrip object

Thanks,
Shinu.
Tags
TabStrip
Asked by
Olga
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or