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

RadScheduleView: ComboBox Binding Issues

1 Answer 25 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 19 Apr 2011, 06:54 PM
I created a RadComboBox in the "Details" grid of the "EditAppointmentTemplate" that resembles the following code:

<telerik:RadComboBox Grid.Row="7" Grid.Column="1" 
                                             DataContext="{Binding Source={StaticResource viewModel}}"
                                            ItemsSource="{Binding CustomTypes}" 
                                            SelectedValue="{Binding SelectedItem.Value, Mode=TwoWay}" 
                                            SelectedValuePath="Name"
 />

I added a static resource that points to my view model in the resource dictionary:

<App:ViewModel x:Key="vm"/>

My view model has two objects, CustomTypes and CustomObject. The ComboBox correctly loads all of the types from CustomTypes, but it fails to bind the selected value from the CustomObject.  If I take the ComboBox out of the template and remove the Static Resource line, it works fine.  

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 20 Apr 2011, 01:23 PM
Hi Ryan,

Can you send us a simple application that can be used to observe and debug the problem? We will reply with a suggestion asap.

Regards,
Valeri Hristov
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
Ryan
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or