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

Dynamic Tab Creation bug (selected Tab)

0 Answers 54 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 22 Jun 2009, 03:05 PM
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.

No answers yet. Maybe you can help?

Tags
TabStrip
Asked by
Doug
Top achievements
Rank 1
Share this question
or