MultiColumn ComboBox - Double Lines

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    1 posts
    Member since:
    Jun 2010

    Posted 15 Jun 2011 Link to this post

    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."
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 21 Jun 2011 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top