Dynamic Tab Creation bug (selected Tab)

1 posts, 0 answers
  1. Doug
    Doug avatar
    7 posts
    Member since:
    Feb 2009

    Posted 22 Jun 2009 Link to this post

    Under the new release of the tabstrip the property to set the tab as selected no longer works.

        Dim rootTab As RadTab = New RadTab  
        rootTab.Text = "TabText" 
        rootTab.ImageUrl = "http://www.mytabimage.com/image.jpg" 
        rootTab.Value = "TabValue" 
        rootTab.Selected = True 

        RadTabStrip1.Tabs.Add(rootTab) 

        


    If you create several tabs with only one being set at as selected it always selects the first tab regardless of whether the tab was selected or not when it was added.  Now, this same code worked in the previous versions of the tab control without a problem.

    My current workaround is tracking what the selected index should be and setting that

     RadTabStrip1.SelectedIndex = SelectedTabIndex 

    Just thought I would let you know.
Back to Top