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

How to - each RadComboBox in column inside RadGridView with unique data

3 Answers 74 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dominik
Top achievements
Rank 1
Dominik asked on 29 Jul 2010, 09:53 AM

Hi there. Here is what I want to achieve:

I have RadGridView with two columns - first contains ordinary text (GridViewDataColumn), second is a GridViewComboBoxColumn. Each row consist of property (first column) and possible values (displayed in comboBox in second column) which vary for each property. For example:

Property: border
Possible values: solid, dash

Property: font-family
Possible values: arial, times new roman

The problem is that I can set data source for whole column but not for individual ComboBoxes - or at least I don't know these controls good enough.

Data is bound correctly, but the only thing missing is separate data source for each comboBox. How to achieve that?

I'm using Silverlight 4, Telerik controls Q1 2010 SP2

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 02 Aug 2010, 05:34 PM
Hi Dominik,

You may use the ItemsSourceBinding property of the combo column . This way you can tell it to get its ItemsSource form the font-family property of your business object for example.

In case you have troubles implementing this, just let me know and I will gather a small working example for you.

Regards,
Pavel Pavlov
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
0
Dominik
Top achievements
Rank 1
answered on 04 Aug 2010, 08:59 AM
Well, that example would be very useful.
0
Accepted
Pavel Pavlov
Telerik team
answered on 09 Aug 2010, 09:50 AM
Hi Dominik,

Please find the example attached.

Greetings,
Pavel Pavlov
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
ComboBox
Asked by
Dominik
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Dominik
Top achievements
Rank 1
Share this question
or