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

WordWrap for Label?

3 Answers 472 Views
Label
This is a migrated thread and some comments may be shown as answers.
Phillip Foster
Top achievements
Rank 1
Phillip Foster asked on 02 Aug 2010, 08:51 PM
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) 

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Aug 2010, 10:15 PM
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.

Regards,
Peter
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
0
Sajid Ali
Top achievements
Rank 2
answered on 20 Dec 2013, 12:22 PM
Hi,

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

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

Please point out the work around.

Thanks
0
Peter
Telerik team
answered on 20 Dec 2013, 02:29 PM
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. 

Regards,
Peter
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
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 >>
Tags
Label
Asked by
Phillip Foster
Top achievements
Rank 1
Answers by
Peter
Telerik team
Sajid Ali
Top achievements
Rank 2
Share this question
or