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

Tab with matching pageview

1 Answer 73 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Jin Developer
Top achievements
Rank 1
Jin Developer asked on 05 Nov 2009, 01:04 AM
I have a tabstrip control with 5 tabs, and a Multipage object with 5 pageview. So each tab matches one pageview.

However, if I make the first tab visible=false so that the second tab becomes the first tab, the first pageview is now under the second tab. I can't figure out a way to hide the pageview as well.

So how do I hide the first tab and also make the pageview matching correctly to its original tab?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 05 Nov 2009, 10:00 PM
The following would set the second tab to be the selected one:

 <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="1" runat="server" MultiPageID="RadMultiPage1" skin="Outlook"  CssClass="NoBg"
 <Tabs> 
   <telerik:RadTab runat="server" Text="Root RadTab1" PageViewID="PageView1"
   </telerik:RadTab> 
   <telerik:RadTab runat="server" Text="Root RadTab2" PageViewID="PageView2"
   </telerik:RadTab> 
   <telerik:RadTab runat="server" Text="Root RadTab3" PageViewID="PageView3"
   </telerik:RadTab> 
 </Tabs> 
</telerik:RadTabStrip> 
<telerik:RadMultiPage id="RadMultiPage1" runat="server" SelectedIndex="1" Width="400"
  <telerik:RadPageView id="Pageview1" runat="server"
      Name: John Smith<br /> 
      Birthday: October 20th 1976<br /> 
      Marital Status: Single 
      <br /> 
  </telerik:RadPageView> 
  <telerik:RadPageView id="Pageview2" runat="server"
      ... 
      Content of the Pageview2 
      ... 
  </telerik:RadPageView> 
  <telerik:RadPageView id="Pageview3" runat="server"
      ... 
      Content of the Pageview3 
      ... 
  </telerik:RadPageView> 
</telerik:RadMultiPage>  

Even if you set the first tab's visibility to false this will show the second tab as the first tab. You essentially tell the TabStrip which index is the selected one, and you also define the RadMultiPage's index to be the same thing.


Tags
TabStrip
Asked by
Jin Developer
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or