TabStrip On Master Page

3 posts, 0 answers
  1. Michael
    Michael  avatar
    13 posts
    Member since:
    May 2006

    Posted 08 Apr 2009 Link to this post

    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. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 10 Apr 2009 Link to this post

    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.
  3. Michael
    Michael  avatar
    13 posts
    Member since:
    May 2006

    Posted 14 Apr 2009 Link to this post

    Thanks...this was exactly what I needed.
Back to Top