Cannot change order of tab headers

4 posts, 0 answers
  1. Gary
    Gary avatar
    14 posts
    Member since:
    Sep 2008

    Posted 02 Jan 2010 Link to this post

    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>

     

  2. Christopher Bishop
    Christopher Bishop avatar
    50 posts
    Member since:
    May 2008

    Posted 03 Jan 2010 Link to this post

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

    Add a PageViewID to your RadTab like above.
  3. Gary
    Gary avatar
    14 posts
    Member since:
    Sep 2008

    Posted 03 Jan 2010 Link to this post

    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. 


  4. Gary
    Gary avatar
    14 posts
    Member since:
    Sep 2008

    Posted 04 Jan 2010 Link to this post

    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! 
Back to Top