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

Word Wrap Tab Text

1 Answer 113 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Neil N
Top achievements
Rank 1
Iron
Veteran
Iron
Neil N asked on 14 May 2009, 03:24 PM
Is it possible to word wrap the text appearing on tabs?

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 18 May 2009, 08:55 AM
Hi Neil,

We do not recommend using multiline text in the tabs, as the current skins use fixed height images and you will need to make custom skin(s) for this case.

Still, if you decide to do so, please find below a sample code snippet that shows the needed approach.

<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title>Untitled Page</title> 
    <style type="text/css">  
        div.RadTabStrip .rtsTxt  
        {  
            white-space: normal;  
        }  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server">  
        <Tabs> 
            <telerik:RadTab runat="server" Text="Root RadTab1 Root RadTab1 Root RadTab1 Root RadTab1" 
                Width="250px">  
            </telerik:RadTab> 
            <telerik:RadTab runat="server" Text="Root RadTab2">  
            </telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 
    </form> 
</body> 
</html> 

Regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TabStrip
Asked by
Neil N
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Paul
Telerik team
Share this question
or