Word Wrap on DescriptionText

6 posts, 0 answers
  1. healy
    healy avatar
    1 posts
    Member since:
    May 2007

    Posted 07 May 2007 Link to this post

    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.
  2. Jordan
    Jordan avatar
    547 posts

    Posted 08 May 2007 Link to this post

    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,
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft banner
  4. SelAromDotNet
    SelAromDotNet avatar
    67 posts
    Member since:
    Jul 2012

    Posted 13 Jul 2009 Link to this post

    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.


    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?
  5. Boyko Markov
    Boyko Markov avatar
    610 posts

    Posted 17 Jul 2009 Link to this post

    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.

    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.
  6. Tim DiPaula
    Tim DiPaula avatar
    16 posts
    Member since:
    Jul 2009

    Posted 23 Oct 2009 Link to this post

    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.
  7. Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 29 Oct 2009 Link to this post

    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.

    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.
Back to Top
DevCraft banner