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
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 >>