multi-lined text on RadListBox

4 posts, 0 answers
  1. Mormal
    Mormal avatar
    1 posts
    Member since:
    May 2007

    Posted 30 Aug 2007 Link to this post

    Is it possible to put multi-lined text in items of RadListBox ?
  2. Angel
    Admin
    Angel avatar
    121 posts

    Posted 30 Aug 2007 Link to this post

    Hello Mormal,

    Yes, you can do it in different ways:
    1. There are 2 text properties that ListBoxItem has: Text and Description. If you use these you have the advantage to set different font, color, etc. setting for each text and to show a text separator (its visibility is determined by the property TextSeparatorVisibility.
       
    2. For each of these 2 texts you can specify texts with many lines. If you set them by code use symbol for new line ("\n") or the default windows combination ("\r\n").
      If you set them in design time click on the arrow for the text and write in the drop-down the text pressing Enter when new line is necessary. When the text is entered press Ctrl+Enter.

    Sincerely yours,
    Angel
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  3. Doug
    Doug avatar
    7 posts
    Member since:
    May 2017

    Posted 10 Apr 2018 Link to this post

    I do not think this is accurate anymore.  I do not see any "description" for RadListBox item now.
  4. Dimitar
    Admin
    Dimitar avatar
    2820 posts

    Posted 11 Apr 2018 Link to this post

    Hello Doug,

    The RadListBox control is deprecated and is no longer available in the suite. You can use the RadListControl and add DescriptionTextListDataItem. Detailed information is available here: Adding Items Programmatically | RadListControl.

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top