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

Radtabstrip selectedindex problem...

2 Answers 332 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Moksha
Top achievements
Rank 1
Moksha asked on 13 May 2011, 08:33 AM
Hi....

I have Created on dyanamically Radtrabstrip with multipage option....

If my Radtabstrip has two tab tab1 and tab2.

if i select tab2 ...and my page gets post back...then i want to select tab1 and multipage1 of tab1...

for this i have written code tabstrip.selectindex=0; mutipage.selectedindex=0...

but is not woking... tab2 is remain select as it is....

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 May 2011, 10:11 AM
Hello Moksha,

You can set the selected property to true for the first tab as shown below.

C#:
RadTabStrip1.Tabs[0].Selected = true;

Thanks,
Princy.
0
Cori
Top achievements
Rank 2
answered on 13 May 2011, 01:25 PM
Hello Moksha,

Is you page posting back because of the tab2 being clicked or from some other element on the page? Also, are you using ajax on your page, if so make sure that the RadTabStrip is part of the UpdatedControls collection for whatever control initiates the ajax request.
Tags
TabStrip
Asked by
Moksha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Cori
Top achievements
Rank 2
Share this question
or