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

Cannot change order of tab headers

3 Answers 91 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 2
Gary asked on 02 Jan 2010, 03:22 PM
The following tabstrip was created in the order of Notes, Contact Mechanisms, Relationships.  Recently, we changed the order as shown below.  The content in each tab is correct as per markup below.   However, no matter which order I change the RadTab controls, the tab headers appear in the original order that each was created.  Why is this happening and how can I fix it?

I put this markup on a new page and replace each RadMultiPage content with just a label ... it works fine.  I thought maybe the code-behind was accessing some part of this control, so I changed the name of all IDs expecting to get a compilation error.  However, as expected, the code-behind is not accessing any part of this control.

 

<asp:Panel ID="pnlTabStrip" runat="server" Visible="true">

 

 

<telerik:RadTabStrip ID="rtsContact" runat="server" SelectedIndex="0" MultiPageID="rmpContact" ReorderTabsOnSelect="true">

 

 

<Tabs>

 

 

<telerik:RadTab Text="Contact Mechanisms" />

 

 

<telerik:RadTab Text="Relationships"/>

 

 

<telerik:RadTab Text="Notes" />

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage ID="rmpContact" runat="server" SelectedIndex="0">

 

 

<telerik:RadPageView ID="rpvMechanism" runat="server">

 

 

<uc1:WucContactMechanism ID="wucContactMechanism" runat="server" />

 

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="rpvRelationships" runat="server">

 

 

<uc2:WucAssignedParties ID="wucAssignedParties" runat="server" />

 

 

</telerik:RadPageView>

 

 

<telerik:RadPageView ID="rpvNotes" runat="server">

 

 

<telerik:RadTextBox ID="txtNotes" Runat="server" Rows="15" TextMode="MultiLine" Width="650px" TabIndex="90" BorderColor="LightGray" BorderWidth="1" EnableEmbeddedSkins="false" Skin="IBMS" />

 

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

</asp:Panel>

 

3 Answers, 1 is accepted

Sort by
0
Christopher Bishop
Top achievements
Rank 2
answered on 03 Jan 2010, 09:44 PM
<telerik:RadTab Text="Contact Mechanisms" PageViewID="rpvMechanism" /> 

Add a PageViewID to your RadTab like above.
0
Gary
Top achievements
Rank 2
answered on 04 Jan 2010, 02:20 AM

Tried setting the PageViewID likes this ...

 

 

<telerik:RadTab Text="Contact Mechanisms" PageViewID="rpvMechanism" />

 

 

 

 

 

<telerik:RadTab Text="Relationships" PageViewID="rpvRelationships" />

 

 

 

 

 

<telerik:RadTab Text="Notes" PageViewID="rpvNotes" />

 

 

 

... but it still does not work.  The tab headers continue to display in the order they were created.  It almost seems like the order is stored somewhere, but not in the markup. 


0
Gary
Top achievements
Rank 2
answered on 04 Jan 2010, 07:00 AM
Figured out what the problem was.   It turns out the textual values of the tab headers were cached into our content management system.  Resolved the problem my giving the RadTab controls an ID and removing the cached values.  Can't believe I got caught by that issue again! 
Tags
TabStrip
Asked by
Gary
Top achievements
Rank 2
Answers by
Christopher Bishop
Top achievements
Rank 2
Gary
Top achievements
Rank 2
Share this question
or