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

Word Wrap on DescriptionText

5 Answers 238 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
healy
Top achievements
Rank 1
healy asked on 07 May 2007, 09:21 PM
When adding items to a combo box, is there a word wrap feature for the item's DescriptionText? I notice the example wraps the text "manually" (by putting in their own \r\n).
If not, i could wrap the text by measuring out lines of text based on font size and inserting my own \r\n blahblahblah, but, this feature would be nice for a future release.

5 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 08 May 2007, 08:39 AM
Hello Michael,

Thank you for your interest in our WinForms tools. Indeed, text wrapping is not automatic in the current version, but this feature is in our ToDo list. I think that we will be able to implement it in the next major version.

Thank you for your suggestion and feedback.

 
Sincerely yours,
Jordan
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
SelAromDotNet
Top achievements
Rank 2
answered on 14 Jul 2009, 02:52 AM
did this get implemented? because I've searched the documentation and can't find any information on how to do this!

I found a property buried deep, deep inside the Element Hierarchy editor for a listboxitem, however i am generating the items at runtime, and need to know how to set each item to wrap text.

thanks!

EDIT: I am referring to the ListBox, not the combobox control.

If the listbox can't do this, what control would you recommend for binding to a retrieved list of items, such as recent twitter posts, where i can alternate the background of each item?
0
Boyko Markov
Telerik team
answered on 17 Jul 2009, 11:15 AM
Hello SelArom,

Unfortunately, this feature is still not implemented in RadListBox. However I have prepared a very simple project for you which demonstrates how to achieve the desired behavior with a few lines of code, as the TextWrap feature is built in the TextPrimitive element which we use to render the text in our controls.

I have used the latest version of RadControls for WinForms to prepare the project.

Do not hesitate to write me back if you need more information.


Greetings,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tim DiPaula
Top achievements
Rank 1
answered on 23 Oct 2009, 06:53 PM
When I follow the code example provided the height of the listbox item is very large.  Is there a method to set the height to the size of the text when it is wrapped.  See my attached image for the example.
0
Martin Vasilev
Telerik team
answered on 29 Oct 2009, 01:58 PM
Hello Tim DiPaula,

Thank you for writing. Although I have not managed to reproduce the described issue, I want to let you know that we have improved the TextPrimitive TextWrap functionality and the improvement will be present in the upcoming release - Q3 2009. It will be available next week but if you still cannot wait for it please, create a new support ticket and send me a small example project that demonstrates the undesired height. This will allow me to investigate your case and provide further assistance.

Greetings,
Martin Vasilev
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
healy
Top achievements
Rank 1
Answers by
Jordan
Telerik team
SelAromDotNet
Top achievements
Rank 2
Boyko Markov
Telerik team
Tim DiPaula
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or