I use a tabstrip in conjunction with a Multipage in my project.
The following is a snippet showing relevant ASPX code
TabStrip
<telerik:RadTabStrip ID="rtsMine" runat="server" MultiPageID="rmpMine" OnClientTabSelecting="OnSelecting" | |
OnTabClick="rtsMine_TabClick" Width="100%" SelectedIndex="0"> | |
<Tabs> | |
<telerik:RadTab PageViewID="rpvMineCoreData" Text="Mine Core Data" runat="server" Value="MineCoreData"> | |
</telerik:RadTab> | |
<telerik:RadTab PageViewID="rpvMineDetails" Text="Mine Details" runat="server" Value="MineDetails"> | |
</telerik:RadTab> | |
</Tabs> | |
</telerik:RadTabStrip> |
<telerik:RadMultiPage ID="rmpMine" runat="server" Width="100%" SelectedIndex="0"> | |
<telerik:RadPageView ID="rpvMineCoreData" runat="server" Width="100%"> | |
<table width="100%" cellspacing="3" style="border-style:outset; border-width:1px; border-color:#333333; text-align:center;" rules="all" | |
cellpadding="2"> | |
<tr><td class="fieldheader">Segments</td></tr> | |
</table> | |
</telerik:RadPageView> | |
<telerik:RadPageView ID="rpvSKUDetails" runat="server" Width="100%"> | |
<table width="100%" cellspacing="3" style="border-style:outset; border-width:1px; border-color:#333333; text-align:center;" rules="all" | |
cellpadding="2"> | |
<tr><td class="fieldheader" colspan="2"> | |
Additional Details</td></tr> | |
</telerik:RadPageView> | |
</telerik:RadMultiPage> | |
The page has a RadAjaxManager control and I have configured it so that the TabStrip has the proper UpdatedControls associated with it.
I have also implemented the code to detect the previously selected tab (as explained here
http://www.telerik.com/help/aspnet-ajax/get-previously-selected-tab.html )and )and )and use it to update various controls and Session variables. Now, the problem is, the moment I tie the TabClick event to the TabStrip, I cannot navigate to another tab from the one that is selected. If I click on a different tab, the "Ajax submit" (for want of a better term) fires but the contents shown are that of the inital tab and not the newly selected one. I tried setting selected=True at the tab / page level instead of setting the SelectedIndex at the TabStrip/MultiPage level, but no luck.
I set the Selected=True/SelectedIndex=0 per the reply to my earlier forum post here (http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/tab-contents-are-not-displayed-on-initial-load.aspx) Please can you help me sort this out?
Thanks,
Sreejath