Hi,
I have following RadComboBox:
<telerik:RadComboBox x:Name="cmbSvtAreaManagers" Grid.Row="0" Grid.Column="2" ItemsSource="{Binding SvtAreaManagers}" TextSearch.TextPath="DisplayPerson" DisplayMemberPath="DisplayPerson" SelectedValue="{Binding CurrentCustomerFabrics.AreaManagerID, Mode=TwoWay}" SelectedValuePath="PersonID" ClearSelectionButtonContent="{bx:LocalizeBinding ClearSelectedItem, Global=true}" ClearSelectionButtonVisibility="Visible">As you can see, the SelectedValue is bound to the CurrentCustomerFabrics object (my Model class) defined in my ViewModel.
private CustomerFabricsModel customerFabricsModel;public CustomerFabricsModel CurrentCustomerFabrics{ get { return customerFabricsModel; } set { if (customerFabricsModel != value) { customerFabricsModel = value; NotifyPropertyChanged(); } }}
When the form is launched, the CurrentCustomerFabrics object is null (it's not initialized) so I would expect to see an empty combobox, but instead the first record is shown (SelectedIndex = 0). How is this possible ?
Regards,
Hans
