WordWrap for Label?

4 posts, 0 answers
  1. Phillip Foster
    Phillip Foster avatar
    58 posts
    Member since:
    Apr 2010

    Posted 02 Aug 2010 Link to this post

    Me again. I am attempting to get the text to word wrap, but with no success.

    I have a RadPanel with a RadLabel on it. 
    the label text will look something like this:

    "<html> <p> Mike Wheat of Fairbanks has put the 1940 comic book on the auction block through Dallas-based Heritage Auction Galleries, where it's expected to fetch more than $40,000. Online bids already have climbed to $35,000 for the book, believed to be one of fewer than 300 still in existence.</p>"

    obviously the content of the text is random (ignore that). 
    basically  i have a html string with a date,title,and context. 
    I would like the label to wordwrap the label.
    currently the label stretches out in one long line.(see screenie) 
  2. Peter
    Peter avatar
    1148 posts

    Posted 03 Aug 2010 Link to this post

    Hello Phillip,

    Thanks for writing.

    Make sure that TextWrap property is set to true.

    If you have any other questions, do not hesitate to contact us.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. Sajid Ali
    Sajid Ali avatar
    12 posts
    Member since:
    Aug 2010

    Posted 20 Dec 2013 Link to this post


    Here is my code for wrapping the text but it is generating the compile time errors.

     <telerik:RadListBox ItemsSource="{Binding Path=CalculationErrors}">
                                        <telerik:Label Content="{Binding}" Foreground="Red" TextWrap="True"/>

    Please point out the work around.

  5. Peter
    Peter avatar
    1148 posts

    Posted 20 Dec 2013 Link to this post

    Hello Sajib,

    Thank you for contacting us.

    Please note that this forum concenrs RadControls for WinForms, while your question probably is related to RadControls for ASP.NET AJAX. This is why I want to kindly ask to post your question in the appropriate section which in this case is: Telerik Forums - ASP.NET Controls

    Thank you in advance for your cooperation. 

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top