Tabstrip first tab focus

1 posts, 0 answers
  1. chandu mahi
    chandu mahi avatar
    23 posts
    Member since:
    Jul 2009

    Posted 22 Jul 2009 Link to this post

     

    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.
    1 <%@ Control Language="C#"  CodeFile="Menu.ascx.cs" Inherits="UserControls_Menu" %> 
    2  
    3 <%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="telerik" %> 
    4  
    5 <script runat="server">  
    6     protected void rdt1_TabDataBound(Object sender, EventArgs e)  
    7     {  
    8         Tab Tab1 = rdt1.FindTabByValue("Home");  
    9         if (Tab1 != null)  
    10         {  
    11             Tab1.DataBind();  
    12         }  
    13  
    14         //Tab Tab1 = rdt1.FindTabByValue("NDIRecords");  
    15         //if (Tab1 != null)  
    16         //{  
    17         //    Tab1.DataBind();  
    18         //}  
    19  
    20  
    21     }  
    22  
    23     //Pre-Select a RadTabStrip Tab  
    24     public void PreSelectTab(String TabStripText)  
    25     {  
    26         Tab Tab1 = rdt1.FindTabByValue(TabStripText);  
    27         if (Tab1 != null) Tab1.Selected = true;  
    28         if (Tab1 == null)  
    29         {  
    30             Tab Tab2 = rdt1.FindTabByValue("Home");  
    31             if (Tab2 != null) Tab2.Selected = true;  
    32         }  
    33     }  
    34  
    35  
    36  
    37     //Clear the selection of all RadTabStrip Items  
    38     public void ClearSelection()  
    39     {  
    40         foreach (Tab tab in rdt1.Tabs)  
    41         {  
    42             tab.Selected = false;  
    43         }  
    44     }   
    45 </script> 
    46  
    47  
    48 <table width="100%" border="0" cellpadding="0" cellspacing="0">  
    49   <tr> 
    50      <td valign="top" background="../RadControls/Tabstrip/Skins/NDI/img/menuBackground.gif" style="width: 67px">  
    51        <img src="../images/Misc/NDI Logo.JPG" alt="Welcome to the CDC NDI Intranet Website." style="cursor:hand; height:53px; width:84px;"   
    52          visible="false" border="0" onclick="javascript:location.href='../Default.aspx'" /></td>  
    53           
    54       <td valign="top" background="../RadControls/Tabstrip/Skins/NDI/img/menuBackground.gif" > 
    55             
    56            <telerik:RadTabStrip ID="rdt1"  runat="server" SelectedIndex="0" Skin="NDI" CausesValidation="false" AutoPostBack="true">  
    57               
    58              <Tabs> 
    59                 
    60               <telerik:Tab  text="Home" id="Home"  Value="Home" tooltip="Home Page" Navigateurl="~/Default.aspx">  
    61                </telerik:Tab >                                
    62                <telerik:Tab text="NDIRecords" value="NDIRecords" id="NDIrecords" tooltip="NDIRecords"   
    63                NavigateUrl="~/Modules/NDIRecords.aspx">  
    64                </telerik:Tab>   
    65                <telerik:Tab text="ManualSearch" value="ManualSearch" id="Manualserachrec" tooltip="ManualSearch Records"   
    66                NavigateUrl="~/Modules/ManualSearchRec.aspx">  
    67                </telerik:Tab>   
    68                  
    69              </Tabs> 
    70               
    71            </telerik:RadTabStrip>   
    72              
    73         </td>   
    74           
    75           
    76     </tr> 
    77 </table> 

Back to Top