Grouping items in Dropdownlist

5 posts, 0 answers
  1. Von
    Von avatar
    13 posts
    Member since:
    Aug 2009

    Posted 11 Oct 2011 Link to this post

    Is it possible to group the items in a dropdownlist similar to the attached image?
  2. Von
    Von avatar
    13 posts
    Member since:
    Aug 2009

    Posted 13 Oct 2011 Link to this post

    Anyone who can help me on this one? We would really like to replace our current control suite whose combobox binds terribly slow. But it has a nice feature where the list can be grouped and shown like on the attached image. We can't make that move if we can't do the same with Telerik's dropdownlist.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 14 Oct 2011 Link to this post

    Hi Von,

    Thank you for writing.

    RadDropDownList does not support grouping of items. You can take a look at our RadListView which supports grouping. RadListView is not a dropdown control, but you can easily place it in the popup of RadDropDownList. I am attaching a sample project which demonstrates this behavior. Please note that this solution is not a fully-featured control and may need some further customizations depending on your exact scenario.

    I hope this helps.

    Kind regards,
    Stefan
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  5. Ian
    Ian avatar
    61 posts
    Member since:
    Jul 2010

    Posted 10 Nov 2011 Link to this post

    Hi Stefan

    I am also interested in using the ListView in this manner but with one little twist - I would like to insert a ListView with grouping into the EditorElement of a GridViewComboBoxColumn. I have tried to do this but have come up against the following issues:

    1. Can't find a way to close the editor
    2. The value changes on select but the displayed value in the column cell does not change (may be related to 1 above)
    3. The DropDownSizingMode = SizingMode.UpDownAndRightBottom is lost when the ListView is added to the editor

    Would it be possible for you to rework your excellent example in this thread to allow the ListView to be added to a GridViewComboBoxColumn with the functionality listed above available?

    Many thaks in advance
    Regards
    Ian Carson 
  6. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 15 Nov 2011 Link to this post

    Hi Ian,

    Thank you for writing.

    Attached you can find the requested sample project with the desired functionality. However, I would like to suggest to take a look at our GridViewMultiComboBoxColumn, which consists of a RadGridView inside of a popup. As you know, RadGridView provide filtering, grouping and other data operations and it will not need custom actions to build it.

    I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
     
    Kind regards,
    Stefan
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Back to Top
UI for WinForms is Visual Studio 2017 Ready