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

multi-lined text on RadListBox

3 Answers 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mormal
Top achievements
Rank 1
Mormal asked on 30 Aug 2007, 12:02 PM
Is it possible to put multi-lined text in items of RadListBox ?

3 Answers, 1 is accepted

Sort by
0
Angel
Telerik team
answered on 30 Aug 2007, 04:27 PM
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
0
Doug
Top achievements
Rank 1
answered on 10 Apr 2018, 08:30 PM
I do not think this is accurate anymore.  I do not see any "description" for RadListBox item now.
0
Dimitar
Telerik team
answered on 11 Apr 2018, 08:30 AM
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.
Tags
General Discussions
Asked by
Mormal
Top achievements
Rank 1
Answers by
Angel
Telerik team
Doug
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or