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

Grouping items in Dropdownlist

4 Answers 256 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Von
Top achievements
Rank 1
Von asked on 11 Oct 2011, 02:29 PM
Is it possible to group the items in a dropdownlist similar to the attached image?

4 Answers, 1 is accepted

Sort by
0
Von
Top achievements
Rank 1
answered on 14 Oct 2011, 01:48 AM
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.
0
Stefan
Telerik team
answered on 14 Oct 2011, 11:36 AM
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.

0
Ian
Top achievements
Rank 1
answered on 11 Nov 2011, 04:03 AM
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 
0
Stefan
Telerik team
answered on 15 Nov 2011, 02:14 PM
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.

Tags
DropDownList
Asked by
Von
Top achievements
Rank 1
Answers by
Von
Top achievements
Rank 1
Stefan
Telerik team
Ian
Top achievements
Rank 1
Share this question
or