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

How to get the name of the current tab / how to select specific tab

3 Answers 101 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew Vanderven
Top achievements
Rank 1
Andrew Vanderven asked on 21 Jan 2008, 12:31 AM
Sounds fairly simple, although I can't seem to figure it out - How would I go about finding which tab is currently being displayed? And how would I get a specific tab to be displayed, programmatically?

Basically what I'm really looking for is a way to ensure that when the user loads a page, it *always* loads the first tab - at the moment it seems to load whatever the developer has left the designer on.

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 21 Jan 2008, 09:50 AM
Hello Andrew Vanderven ,

Thank you for writing.

In order to get a specific tab to be displayed programmaticaly you should use the SelectedTab property of RadTabStrip.

Please write me back if you have more questions.

Best wishes,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Judy
Top achievements
Rank 1
answered on 16 Apr 2008, 07:08 PM
Could you answer the part of this user's question that asks, "How would I go about finding which tab is currently displayed?"  I need to know this as well.

This is the jist of what I'm trying to do but the SelectedTab.Name property returns nothing so it doesn't work.

Dim selectedTab As String = Me.RadTabStrip.SelectedTab.Name

     Select Case selectedTab

          Case "Tab1"

          Case "Tab2"

End Select

0
Nikolay
Telerik team
answered on 21 Apr 2008, 07:37 AM
Hello Judy Markworth,

Thank you for getting back to me.

Q1 2008 supports serialization of the Name property, so you should have no problems getting it. I have demonstrated this in the sample application attached. However, if you continue to encounter the issue, please open a new support ticket and send me an application which demonstrates it. 

If you need additional assistance, do not hesitate to contact me. 

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Andrew Vanderven
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Judy
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or