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

Tab selection not firing

1 Answer 65 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
jeevitha
Top achievements
Rank 1
jeevitha asked on 14 Dec 2009, 12:45 PM
Hi,
I have 3 tabs in my aspx page and assigned 2 Pageview for each tab. if i click the tab it working properly. I have button inside first Pageview to select the next tab. if i click that button the next tab shd be enabled. but its not working. The second tab is selected but still the content inside is the first Pageview

<

 

Tabs>

 

 

<telerik:RadTab CssClass="divtabstrip" Text="Child Details" PerTabScrolling="true" PageViewID="PageviewParent"

 

 

Value="Parent" TabIndex="0" runat="server" />

 

 

<telerik:RadTab CssClass="divtabstrip" TabIndex="1" PerTabScrolling="true" Text="Emergency Contact and Other Details"

 

 

PageViewID="Page1" Value="Emergency" runat="server" />

 

 

<telerik:RadTab CssClass="divtabstrip" TabIndex="2" PerTabScrolling="true" Text="Medical Info" PageViewID="Page2"

 

 

Value="Medical" runat="server" />

 

 

</Tabs>

 


 

<telerik:RadMultiPage EnableOutsideScripts="true" ID="radMultiPage" SelectedIndex="0"

 

 

runat="server">

 

 

<telerik:RadPageView ID="Page1" TabIndex="0" runat="server">

 

 

</telerik:RadPageView>

 

<telerik:RadPageView ID="Page2" TabIndex="0" runat="server">

 

 

</telerik:RadPageView>

 


----------------------------

 

protected void NextTab(object sender, EventArgs e)

 

{


radTab.SelectedIndex = 1;
}

Thanks,
Jeevitha

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 14 Dec 2009, 09:51 PM
If you take a look at this demo, particularly the EducationCS.ascx.cs or any other tab's page's code-behind, you can find a sample of how to properly implement the switch through code.
Tags
TabStrip
Asked by
jeevitha
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or