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

wrap text in label

1 Answer 280 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ALA
Top achievements
Rank 1
ALA asked on 27 Jun 2019, 08:30 AM
How can I enable wrap text in telerik label?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar Dinev
Telerik team
answered on 27 Jun 2019, 03:13 PM
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.
Tags
General Discussions
Asked by
ALA
Top achievements
Rank 1
Answers by
Dimitar Dinev
Telerik team
Share this question
or