Ordered Tabs

2 posts, 1 answers
  1. umit celik
    umit celik avatar
    10 posts
    Member since:
    Oct 2009

    Posted 27 Nov 2009 Link to this post

    How can i change output of tabs like
    1-Tab1 2-Tab2 3-Tab3

    i mean instead of ul , i want to use ol
    Thanks.
  2. Answer
    Paul
    Admin
    Paul avatar
    4281 posts

    Posted 27 Nov 2009 Link to this post

    Hello Umit,

    I guess it would be easier if you use TabTemplate and add whatever text you want in the tab, i.e.

    ASPX:
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server">
            <TabTemplate>
                <asp:Label runat="server" ID="Label1" Text='<%# DataBinder.Eval(Container, "Value") + " - "%>' />
                <asp:Label runat="server" ID="lblHeaderText" Text='<%# DataBinder.Eval(Container, "Text") %>' />
            </TabTemplate>
            <Tabs>
                <telerik:RadTab runat="server" Text="Root RadTab1" Value="1">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Root RadTab2" Value="2">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Root RadTab3" Value="3">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        </form>

    Code-behind:
    protected void Page_Load(object sender, EventArgs e)
        {
            RadTabStrip1.DataBind();
        }


    Sincerely yours,
    Paul
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top