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

Selecting first tab

1 Answer 470 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Jerome
Top achievements
Rank 1
Jerome asked on 01 Aug 2011, 11:30 PM
Is there any easy way to ensure at least one Tab is selected? My tabs are dynamic, and hide and show themselves based on stuff. I want the first tab to be selected, if no tabs are selected... preferably without lots of work =/

1 Answer, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 04 Aug 2011, 02:23 PM
Hi Jerome,

In order to select a particular RadTabItem, you can use the RadTabControl's "SelectedItem" and/or "SelectedIndex" properties. Thus you can easily set any tab you want to be selected whenever you wanted.
In your case you can set the "SelectedIndex" to 0, in order to select the first RadTabItem.

Please let us know if you need additional help on the subject.

Greetings,
Vladislav
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
TabControl
Asked by
Jerome
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Share this question
or