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

How do you programmatically make the first tab visible?

2 Answers 55 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Paul Brun
Top achievements
Rank 2
Paul Brun asked on 05 Jan 2011, 04:42 PM
I am adding multiple TAB items to a tab control and after all have been added, it seems that the default is to display the last
added tab item. How do we programmatically select the first tab to be displayed again?

Paul

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Jan 2011, 06:37 PM
Hi Paul Brun,

I am not able to reproduce your issue in my environment. Adding a RadTabItems declaratively, from code behind, or binding a business objects always makes the tabcontrol selects the first ( the leftmost )RadtabItem when it loads. We would highly appreciate if you send us a runnable sample so that we could investigate your issue in depth.
However, you can use the RadTabControl.SelectedIndex or RadTabControl.SelectedItem property in order to make selection.

Regards,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Paul Brun
Top achievements
Rank 2
answered on 05 Jan 2011, 07:01 PM
I was making the call in the wrong location....it is now working.....
thanks
Tags
TabControl
Asked by
Paul Brun
Top achievements
Rank 2
Answers by
Petar Mladenov
Telerik team
Paul Brun
Top achievements
Rank 2
Share this question
or