I try to set the selectedvalue of a combobox as specified in your examples but nothing happens.
<telerik:RadComboBox x:Name="cmbProvince" Grid.Row="2" Height="23" Width="184" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.ColumnSpan="2" ItemsSource="{Binding Path=Data, Source={StaticResource provinceDomainDataSource}}" SelectedValuePath="ProvinceId">
<telerik:RadComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding GlobalizedDescription, Converter={StaticResource localizeConverter}}" />
</DataTemplate>
</telerik:RadComboBox.ItemTemplate>
</telerik:RadComboBox>
In code:
this.cmbProvince.SelectedValue = ((Bass.Web.DataModel.PostalCode)postalCode).ProvinceId;
Debugging past this line still reveals SelectedValue to be null. It does not get updated. Can this have something to do with the itemtemplate that is in my combo?
Best regards and thanks for your help.