wrap text in label

2 posts, 1 answers
  1. ALA
    ALA avatar
    1 posts
    Member since:
    Dec 2016

    Posted 27 Jun Link to this post

    How can I enable wrap text in telerik label?
  2. Answer
    Dimitar Dinev
    Admin
    Dimitar Dinev avatar
    64 posts

    Posted 27 Jun Link to this post

    Hi Farahad,

    The Label control doesn't support text wrapping directly. You can place a TextBox inside a Label like this:
    <telerik:Label MaxWidth="100">
               <TextBlock TextWrapping="Wrap" Text="Looooooooong Text................."/>
    </telerik:Label>
    Or you can use this approach:
    <telerik:Label MaxWidth="100">
         <telerik:Label.Content>
              <TextBlock TextWrapping="Wrap" Text="Looooooooong Text................."/>
         </telerik:Label.Content>
    </telerik:Label>
    Please, let me know if that answers your question.

    Regards,
    Dimitar Dinev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top