Non breaking Label (hyphen space)

4 posts, 1 answers
  1. Benny
    Benny avatar
    33 posts
    Member since:
    May 2009

    Posted 10 Sep 2009 Link to this post

    How do I get the Label for a RadTextBox to be none braking?
      <table> 
            <tr> 
                <td style="width: 400px"
                    <telerik:RadTextBox ID="RadTextBox1" runat="server" Width="100%" Label="hyphen-hyphen"
                    </telerik:RadTextBox> 
                </td> 
                </tr> 
                <tr> 
                  <td style="width: 400px"
                    <telerik:RadTextBox ID="RadTextBox2" runat="server" Width="100%" Label="space space"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
        </table> 

    the example above will break the Labels like 

    hyphen-
    hyphen 

    and

    space
    space

  2. Answer
    Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 10 Sep 2009 Link to this post

    Hi Benny,

    RadTextBox labels do not wrap by default, due to a CSS rule in their skins. Your code snippet works as expected on my side on a standalone web page. Are you using a custom skin or some very old version of the control? Which browser are you using?

    Kind regards,
    Dimo
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Benny
    Benny avatar
    33 posts
    Member since:
    May 2009

    Posted 10 Sep 2009 Link to this post

    I just found out that it's only happens in Visual Studio Desing mode :-)..

  5. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 14 Sep 2009 Link to this post

    VSDesigner!=WYSIWYG && VSDesigner==FYNGWYS
    Fortunately
    You
    Never
    Get
    What
    You
    See
    :)
Back to Top