Hello,
I have a RadComboBox bound to an ItemsSource that is an ObservableCollection. When that ObserableCollection is changed the RadComboBox SelectedValue is set to -1 instead of the binding in the SelectedValue. The underlying object is not changed and still has the correct value.
Here is my binding.
<telerik:RadComboBox Name="cmbLocation" Margin="0 8 0 0" IsEditable="False" Width="95" ItemsSource="{Binding Lookup.LuLocation}" DisplayMemberPath="LocationDescription" SelectedValuePath="LocationId" SelectedValue="{Binding Path=Line.LocationId, Mode=TwoWay}" HorizontalAlignment="Left" />
How do I keep the binding as the ObservableCollection changes?
Thank you,
Rick
I have a RadComboBox bound to an ItemsSource that is an ObservableCollection. When that ObserableCollection is changed the RadComboBox SelectedValue is set to -1 instead of the binding in the SelectedValue. The underlying object is not changed and still has the correct value.
Here is my binding.
<telerik:RadComboBox Name="cmbLocation" Margin="0 8 0 0" IsEditable="False" Width="95" ItemsSource="{Binding Lookup.LuLocation}" DisplayMemberPath="LocationDescription" SelectedValuePath="LocationId" SelectedValue="{Binding Path=Line.LocationId, Mode=TwoWay}" HorizontalAlignment="Left" />
How do I keep the binding as the ObservableCollection changes?
Thank you,
Rick