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

[Solved] RadGridView ComboBox with mutliple display values

3 Answers 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jay
Top achievements
Rank 1
Jay asked on 18 Jan 2011, 10:28 PM

I’m using the Silverlight Q3 2010 controls.

When editing within a RadGridView there are some columns that I would like to use a combobox that has multiple display values, much like a grid.  Is this possible or does anybody have a solution?

If this question has already been asked, I apologize in advance.  I could not find an answer.

Thank you.

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 19 Jan 2011, 08:27 AM
Hello Jay,

You may try to define the ItemTemplate of the GridViewComboBoxColumn. Additional information may be found in our online documentation.
Let me know if you need any further assistance.
 

All the best,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Jay
Top achievements
Rank 1
answered on 20 Jan 2011, 12:32 AM

Your suggested solution is really close except that it places both values in the grid when all I really want is one of the values.  Example:

Let’s say I want the grid to display:

Vehicle  Color
---------------------
Ford  R
Chevy  G
Toyota  W

When editing a record, I want to place a combo box on “Color” that looks like

R Red
G Green
W White
Y Yellow

With the solution you provided by Grid ends up looking like:

Vehicle  Color
---------------------
Ford  R Red
Chevy  G Green
Toyota  W White

Is there any way to have the combo box display extra values only when actually changing the cell?

0
Maya
Telerik team
answered on 20 Jan 2011, 10:40 AM
Hi Jay,

You may define the EditorStyle of the GridViewComboBoxColumn. I am sending you a sample project illustrating the proposed solution.
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Jay
Top achievements
Rank 1
Answers by
Maya
Telerik team
Jay
Top achievements
Rank 1
Share this question
or