Current Tab Index and Header

2 posts, 0 answers
  1. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 04 Sep 2012 Link to this post

    How do I determine current tab header and index using the RadTabControl (VB.NET)?


  2. Zarko
    Zarko avatar
    755 posts

    Posted 07 Sep 2012 Link to this post

    Hello Gonzalo,
    You could use the SelectedIndex property of the RadTabControl and get the current header like this:
    Dim currentIndex As Integer = Me.tabControl.SelectedIndex
    Dim container As RadTabItem = TryCast(Me.tabControl.ItemContainerGenerator.ContainerFromIndex(currentIndex), RadTabItem)
    If container IsNot Nothing Then
        Dim currentHeader As Object = container.Header
    End If
    If you have further questions please feel free to ask.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top