Hi,
I am using Radtabstrip in a header control which I have placed in my master page. I'm trying to redirect to the specific pages on cliking of tabs in header, which is working fine. The only problem is, the selected tab of Radtabstrip is always the first tab. It is redirecting to correct page but focus is always to tab 0 in Radtabstrip. Following is my html code.
<
telerik:RadTabStrip ID="RadTabStrip1" runat="server"
SelectedIndex="0" CssClass="tabStrip" OnTabClick="RadTabStrip1_TabClick" CausesValidation="false">
<Tabs>
<telerik:RadTab Text="Home">
</telerik:RadTab>
<telerik:RadTab Text="Login">
</telerik:RadTab>
<telerik:RadTab Text="Register">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
Below is my code behind
protected
void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
string HTMLTemplatePath =
ConfigurationSettings.AppSettings["Path"];
string strCurrentTab = e.Tab.Text;
switch (strCurrentTab)
{
case "Home":
RadTabStrip1.SelectedIndex=e.Tab.Index;
Response.Redirect(HTMLTemplatePath +
GeneralDeclaration.PAGE_Home);
break;
case "Login":
RadTabStrip1.SelectedIndex = e.Tab.Index;
Response.Redirect(HTMLTemplatePath +
GeneralDeclaration.PAGE_Login);
break;
case "Register":
RadTabStrip1.SelectedIndex = e.Tab.Index;
Response.Redirect(HTMLTemplatePath +
GeneralDeclaration.PAGE_Register);
break;
}
}
Thanks.