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

Tabstrip problem

2 Answers 92 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Eva
Top achievements
Rank 1
Eva asked on 28 Aug 2008, 12:05 AM
Hi,

I have  problem with tabstrip.When i click tab it postback twice.Here is my code.Am i missing anythink.

<radTab:RadTabStrip ID="tabstrip1" runat="server" MultiPageID="RadMultiPage1" AutoPostBack="true" OnTabClick="tabstrip1_TabClick" ClickSelectedTab="true">
<Tabs >
<radTab:Tab Text="test1"  ID="Tabtest1" runat="server" Value="1" PageViewID="PageView1" ></radTab:Tab>
<radTab:Tab Text="test2" ID="Tabtest2" runat="server" Value="2" PageViewID="PageView2"></radTab:Tab>
</Tabs></radtab:RadTabStrip>

<radTab:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
<radTab:PageView ID="PageView1" runat="server">
<radgrid>
</radTab:PageView>
<radTab:PageView ID="PageView2" runat="server">
<radgrid>
</radTab:
PageView>

Protected Sub tabstrip1_TabClick(ByVal sender As Object, ByVal e As Telerik.WebControls.TabStripEventArgs) Handles tabstrip1.TabClick
End Sub

thanks.
Eva

2 Answers, 1 is accepted

Sort by
0
Accepted
Paul
Telerik team
answered on 28 Aug 2008, 07:10 AM
Hello Eva,

Just remove/delete the OnTabClick="tabstrip1_TabClick" from the ASPX page. Here's your modified code snippet that works as expected.

ASPX:
<radtab:RadTabStrip   
    ID="tabstrip1"   
    runat="server"   
    MultiPageID="RadMultiPage1"   
    AutoPostBack="true"   
    ClickSelectedTab="true"

Code-behind:
 
Partial Class _Default  
    Inherits System.Web.UI.Page  
 
      
    Protected Sub tabstrip1_TabClick(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles tabstrip1.TabClick  
 
    End Sub 
End Class 
 


Best wishes,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Eva
Top achievements
Rank 1
answered on 28 Aug 2008, 04:31 PM
Thanks Paul.
Tags
TabStrip
Asked by
Eva
Top achievements
Rank 1
Answers by
Paul
Telerik team
Eva
Top achievements
Rank 1
Share this question
or