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

MasterPage Content Error with Tabstrip

3 Answers 44 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Andrew Cao
Top achievements
Rank 1
Andrew Cao asked on 27 May 2010, 07:13 AM
I have a few levels of master page each built with tabstrip as link button.
     <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Vista" MultiPageID="RadMultiPage1" SelectedIndex="0" ClickSelectedTab="true">  
             <Tabs> 
                 <telerik:RadTab Text="Bills" NavigateUrl="ReportParameters.aspx" runat="server" Selected="True" Font-Underline="true" Font-Italic="true" > 
                 </telerik:RadTab> 
                 <telerik:RadTab Text="Reports" NavigateUrl="FlowThroughStart.aspx" runat="server"  Selected="True" Font-Underline="true" Font-Italic="true">  
                 </telerik:RadTab> 
             </Tabs> 
         </telerik:RadTabStrip> 
 
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">  
             <telerik:RadPageView runat="server" ID="RadPageView1"></telerik:RadPageView>   
             <telerik:RadPageView runat="server" ID="RadPageView2" ></telerik:RadPageView> 
</telerik:RadMultiPage>  
this is the top master page.

then goes down to here another master page under the one above still built with tabstrip
<div id="Div1">          
               <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Vista" MultiPageID="RadMultiPage1" SelectedIndex="0">  
             <Tabs>  
                 <telerik:RadTab Text="Flow Through" NavigateUrl="FlowThroughStart.aspx" runat="server" Selected="True"  Font-Italic="true" BackColor="Brown" >  
                 </telerik:RadTab>  
                 <telerik:RadTab Text="Rebill" NavigateUrl="RebillStart.aspx" runat="server"  Selected="True"  Font-Italic="true" BackColor="Brown">  
                 </telerik:RadTab>  
                  <telerik:RadTab Text="General" NavigateUrl="GeneralStart.aspx" runat="server"  Selected="True"  Font-Italic="true" BackColor="Brown">  
                 </telerik:RadTab>  
             </Tabs>  
         </telerik:RadTabStrip>  
 
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">  
             <telerik:RadPageView runat="server" ID="RadPageView1"></telerik:RadPageView>   
             <telerik:RadPageView runat="server" ID="RadPageView2" ></telerik:RadPageView>  
             <telerik:RadPageView runat="server" ID="RadPageView3" ></telerik:RadPageView>  
</telerik:RadMultiPage>  

while  run this page
if I select any tab except the first one on the second level, for instance in this case ReBill. The higher level tabstrip which should be Reports displayed as selected will be replaced automaticly with the first tab which is Bills.

Can someone help me on this . Thank you very much

3 Answers, 1 is accepted

Sort by
0
Andrew Cao
Top achievements
Rank 1
answered on 27 May 2010, 09:15 PM
All Im tring to change here is the Focus on the webpage, could someone help me? thank you
0
Peter
Telerik team
answered on 01 Jun 2010, 02:14 PM
Hi Andrew,

If you have set the NavigateUrl property to navigate to pages, then you need to select the current tab and its page view from code like this:
protected void Page_Load(object sender, EventArgs e)
   {
       RadTab currentTab = RadTabStrip1.FindTabByUrl(Request.Url.PathAndQuery);
       if (currentTab != null)
       {          
           currentTab.Selected = true;
           RadMultiPage1.SelectedIndex = currentTab.Index;
       }
   }

Attached is a simple demo for reference.


Greetings,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Andrew Cao
Top achievements
Rank 1
answered on 01 Jun 2010, 06:44 PM
Thank you, It works great now.
Tags
TabStrip
Asked by
Andrew Cao
Top achievements
Rank 1
Answers by
Andrew Cao
Top achievements
Rank 1
Peter
Telerik team
Share this question
or