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

Tabstrip first tab focus

0 Answers 87 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
chandu mahi
Top achievements
Rank 1
chandu mahi asked on 22 Jul 2009, 07:16 PM

 

Hi..
i am using teleric tabstrip. In my website i have few pages. When i added the pages to  teleric tabstrip its working fine. But , problem is my first tab is not focusing..i mean mouse over icon is not appearing on my first tab. Other tabs are working fine.

When i am debugging from my tab page i can see that page on my website . when i moved to the other page and trying to access first tab page ..i couldn't do that. i double check my code everything is correct.
Below is my code , I added my pages in tabs, i am using this Menu  user control in master page. Everything works fine, Except first tab is not focusing.. Why?? Give me some idea.
<%@ Control Language="C#"  CodeFile="Menu.ascx.cs" Inherits="UserControls_Menu" %> 
 
<%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="telerik" %> 
 
<script runat="server">  
    protected void rdt1_TabDataBound(Object sender, EventArgs e)  
    {  
        Tab Tab1 = rdt1.FindTabByValue("Home");  
        if (Tab1 != null)  
        {  
            Tab1.DataBind();  
        }  
 
        //Tab Tab1 = rdt1.FindTabByValue("NDIRecords");  
        //if (Tab1 != null)  
        //{  
        //    Tab1.DataBind();  
        //}  
 
 
    }  
 
    //Pre-Select a RadTabStrip Tab  
    public void PreSelectTab(String TabStripText)  
    {  
        Tab Tab1 = rdt1.FindTabByValue(TabStripText);  
        if (Tab1 != null) Tab1.Selected = true;  
        if (Tab1 == null)  
        {  
            Tab Tab2 = rdt1.FindTabByValue("Home");  
            if (Tab2 != null) Tab2.Selected = true;  
        }  
    }  
 
 
 
    //Clear the selection of all RadTabStrip Items  
    public void ClearSelection()  
    {  
        foreach (Tab tab in rdt1.Tabs)  
        {  
            tab.Selected = false;  
        }  
    }   
</script> 
 
 
<table width="100%" border="0" cellpadding="0" cellspacing="0">  
  <tr> 
     <td valign="top" background="../RadControls/Tabstrip/Skins/NDI/img/menuBackground.gif" style="width: 67px">  
       <img src="../images/Misc/NDI Logo.JPG" alt="Welcome to the CDC NDI Intranet Website." style="cursor:hand; height:53px; width:84px;"   
         visible="false" border="0" onclick="javascript:location.href='../Default.aspx'" /></td>  
          
      <td valign="top" background="../RadControls/Tabstrip/Skins/NDI/img/menuBackground.gif" > 
            
           <telerik:RadTabStrip ID="rdt1"  runat="server" SelectedIndex="0" Skin="NDI" CausesValidation="false" AutoPostBack="true">  
              
             <Tabs> 
                
              <telerik:Tab  text="Home" id="Home"  Value="Home" tooltip="Home Page" Navigateurl="~/Default.aspx">  
               </telerik:Tab >                                
               <telerik:Tab text="NDIRecords" value="NDIRecords" id="NDIrecords" tooltip="NDIRecords"   
               NavigateUrl="~/Modules/NDIRecords.aspx">  
               </telerik:Tab>   
               <telerik:Tab text="ManualSearch" value="ManualSearch" id="Manualserachrec" tooltip="ManualSearch Records"   
               NavigateUrl="~/Modules/ManualSearchRec.aspx">  
               </telerik:Tab>   
                 
             </Tabs> 
              
           </telerik:RadTabStrip>   
             
        </td>   
          
          
    </tr> 
</table> 

No answers yet. Maybe you can help?

Tags
TabStrip
Asked by
chandu mahi
Top achievements
Rank 1
Share this question
or