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

Combobox Column in a datatemplate

1 Answer 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jack Helm
Top achievements
Rank 1
Jack Helm asked on 10 May 2010, 09:24 PM
I have a TabControl that is using a DataTemplate to bind to a list of objects. For each object in the collection a new tab is created. The tabs have a series of controls that will appear on each tab that are bound to the verious properties of the objects in the collection. One of these properties is a list of other objects that I am using a RadGridView to display.

On the RadGridView I have some columns which will be bound but which will only have 2 or 3 possible selections which will be hard coded in. I figured out how to do this for a normal RadComboBox outside of the gridview. But I have not been able to figure out or find the right example of haing a bound ComboboxColumn and defining in the Xaml what the options are that can be selected. I know in the normal combobox I just used RadComboBoxItems. But I have not been able to get that solution to work with a ComboboxColumn. Can anyone point me to an example or give me a quick example of how this is done?

Many thanks.

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 13 May 2010, 01:21 PM
Hi Jack Helm,

You may provide the source collection as a static resource and then use the following syntax

<GridVIewComboBoxColumn ItemsSourceBinding = {Binding {StaticResource  .....}}

in case this does not help , just give me more details on your scenario and I will try  to provide an example.

Kind 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.
Tags
GridView
Asked by
Jack Helm
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or