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

Combobox item collection

1 Answer 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Claude asked on 17 Feb 2010, 10:30 PM
Is it possible to create an Items Collection during design time to fill a combobox such as I can with a combobox on a form? 

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 22 Feb 2010, 05:18 PM
Hello Claude,

Thank you for the question. Actually, the GridViewComboBoxColumn does not support adding items in design time, because the way it works is different compared to RadComboBox control. It inherits GridViewDataColumn and uses a combo box only as editor. Actually, the combo box editor is the element that handles the items but it is created on the first entering in edit mode, and it is not accessible in design time. Moreover, if you want your data in grid to be consistent  you have to determine value and display member for ComboBox column which is not possible in the standard items editor.

Write me back if you have any additional questions.

Kind regards,
Martin Vasilev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Claude
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or