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

set selectedtab

1 Answer 60 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 09 Jul 2009, 02:32 AM
i tried radtabstrip1.selectedtab = "Tab2" and it doesn't work but with radtabstrip1.selectedindex = 1 then it works fine. Is that function disable? or did i do something wrong? please help thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 09 Jul 2009, 06:26 AM
Hi Duy,

The SelectedTab property of RadTabStrip is readonly and it returns the child tab which is currently selected. You can try the following code to set the tab as selected based on tab text.

C#:
 
RadTabStrip1.FindTabByText("Tab2").Selected = true

-shinu.
Tags
TabStrip
Asked by
appdev
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or