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

TabStrip On Master Page

2 Answers 110 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 08 Apr 2009, 03:23 PM
I want to put a tab strip on my master page. How would I change the tab index of different tabs as various pages load. The tab index would change for each page.

2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 10 Apr 2009, 01:28 PM
Hi Michael ,

If you are navigating to new pages while clicking on the tabs, then you will have to manually select the needed tab based on the loaded URL. This can be achieved by using the FindTabByUrl method on Page_Load event, i.e.:

Masterpage.master code-behind:
protected void Page_Load(object sender, System.EventArgs e)  
{  
    RadTab tab = RadTabStrip1.FindTabByUrl(Request.Url.PathAndQuery);  
    if (tab != null)  
    {  
        tab.Selected = true;  
        tab.SelectParents();  
        tab.PageView.Selected = true;  
    }  
}  
 


Kind regards,
Paul
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 2
answered on 14 Apr 2009, 10:15 AM
Thanks...this was exactly what I needed.
Tags
TabStrip
Asked by
Michael
Top achievements
Rank 2
Answers by
Paul
Telerik team
Michael
Top achievements
Rank 2
Share this question
or