Child tab selected is not highlighted

2 posts, 0 answers
  1. sudheer
    sudheer avatar
    109 posts
    Member since:
    Dec 2008

    Posted 09 Apr 2009 Link to this post

    Hi telerik team,

    I have a serious issue with tabstrip child seletion

    My scenario is

    According to demo of below URL

    Onpage load
    selectedindex=0(politics) for that child links are CNN , NBC , ABC  .in which NBC should get highlighted,also if i select ABC it will get postback and should get highlight(select mode).

    please guide how to acheive
  2. Paul
    Paul avatar
    4281 posts

    Posted 10 Apr 2009 Link to this post

    Hello sudheer,

    There's quite a difference between navigate and postback. If your tabstrip makes postback on tab click then the clicked tab will be automatically selected after the postback. Still, 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.:

    protected void Page_Load(object sender, System.EventArgs e)  
        RadTab tab = RadTabStrip1.FindTabByUrl(Request.Url.PathAndQuery);  
        if (tab != null)  
            tab.Selected = true;  
            tab.PageView.Selected = true;  

    All the best,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top