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

4 posts, 0 answers
  1. Andrew Vanderven
    Andrew Vanderven  avatar
    5 posts
    Member since:
    Dec 2007

    Posted 20 Jan 2008 Link to this post

    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.
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 21 Jan 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Judy
    Judy avatar
    12 posts
    Member since:
    Apr 2008

    Posted 16 Apr 2008 Link to this post

    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

  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 21 Apr 2008 Link to this post

    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
Back to Top