This is a migrated thread and some comments may be shown as answers.
SIlverlight RadGridViewComboBox Binding
1 Answer 25 Views
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 21 Oct 2010, 06:42 PM

 

 

 

Hi all,

I have a view model class that currently has one property 'RiskItemTypeList'.

Inside my Child Window control, i have a Silverlight Tab Control (SL Toolkit).
Tab1 hosts a Grid which among other things hosts a Rad Grid View.

In XAML i am trying to databind a GridViewComboBoxColumn to the View Model property exposed, with no luck!

Can anyone see what i am missing? I am sure it an issue of scope, but not sure how to do this properly in XAML!

<
Grid.Resources>

 

<viewmodel:RiskItemViewModel x:Name="ViewModel"/>

 

 

</Grid.Resources>

 

 

 

<telerik:GridViewComboBoxColumn Header="Type" ItemsSource="{Binding RiskItemTypeList, Source= {StaticResource ViewModel}}">

 

</telerik:GridViewComboBoxColumn>

If i use the same ItemsSource Binding syntax on a combo box outside the grid view, everything works as expected.

Any help appreciated.

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 26 Oct 2010, 07:50 AM
Hello Adam,

What is the exact problem? Does the combobox is empty when you go in edit mode? Or, the cells are empty in view mode? If so, you need to set the DisplayMemberPath property of the combobox column as shown here.

Kind regards,
Veselin 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
Asked by
Adam
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or