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

ComboBox On Individual Cell Under Column

3 Answers 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 30 Nov 2012, 07:49 PM
How can I add a combo-box to a single row's cell under a specific column?

I want a table like this:

| Property | Value |
| Name     | <string> |
| Config    | <comboboxList> |

The cell at row "Name", column "Value" is a simple text box editor.
How do I make the cell for row "Config", column "Value" a combo box?

Kind Regards,
Albert

3 Answers, 1 is accepted

Sort by
0
Albert
Top achievements
Rank 1
answered on 01 Dec 2012, 07:34 PM
I am converting a grid from Infragistics UltraWinGrid to Telerik WPF RadGridView. With Infragistics, I could simply create a ValueList and assign it to an instance of UltraGridCell's ValueList property. Looking at the API for RadGridView's GridViewCell, I don't see a similar property.

I see that there is a CellEditTemplate, but can this only be applied at the GridViewDataColumn? Or can each cell under a column have a different CellEditTemplate? I want some cells under a column to use text box editors while others use combobox editors.

Kind Regards,
Albert
0
Maya
Telerik team
answered on 03 Dec 2012, 07:16 AM
Hello Albert,

Please take a look at this demo and this article for more information. Will that approach meet your requirements ? 

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Albert
Top achievements
Rank 1
answered on 04 Dec 2012, 04:36 PM
Thanks, Maya. I'm new to WPF and that was the direction I needed.

Kind Regards,
Albert
Tags
GridView
Asked by
Albert
Top achievements
Rank 1
Answers by
Albert
Top achievements
Rank 1
Maya
Telerik team
Share this question
or