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

MultiColumn ComboBox - Double Lines

1 Answer 37 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 15 Jun 2011, 11:34 PM
I am trying to use your combo box that when it is dropped down the contents displayed show two lines of data for each row, but I cannot find out what properties I need to set.

You can see an example found on this page http://www.telerik.com/products/winforms/multicolumncombo.aspx under "Rotating Items on Double-Click."

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Jun 2011, 09:18 AM
Hello Jonathan,

Thank you for writing.

The multi-line text is achieved through the Text and Description properties of the item in RadComboBox. However, RadComboBox is now obsolete and has been replaced by the RadDropDownList. The latter control does not have integrated functionality for Text and Description. In order to achieve such behavior, you will need to customize the RadDropDownList control. Attached, you can find a sample project which demonstrates such functionality through the use of a custom RadListVisualItem. Additionally, you can see a scenario of binding the new control to a DataTable.

The control that you are referring to is RadMultiColumnComboBox which consists of a RadGridView in a drop down. The image mentioned shows a GridViewComboBoxColumn which was previously using the RadComboBox control internally. After the release of RadDropDownList control we replaced the combo box in the grid column with RadDropDownList, which means that the Text and Description functionality is no longer available. If you need it in a column in the grid, then you should implement it manually.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
 
Kind regards,
Stefan
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
MultiColumn ComboBox
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or