<
telerik:RadComboBox
Grid.Column
=
"0"
ItemsSource
=
"{Binding Path=DropDownCollectionView}"
IsSynchronizedWithCurrentItem
=
"True"
DisplayMemberPath
=
"Code"
IsEditable
=
"True"
EmptyText
=
"Code"
SelectedItem
=
"{Binding Path=Container.Data, Mode=TwoWay}"
Width
=
"75"
VerticalAlignment
=
"Top"
>
<
i:Interaction.Behaviors
>
<
wpf:RadComboBoxClearTextOnLostFocusWhenSelectedItemIsNull
/>
</
i:Interaction.Behaviors
>
</
telerik:RadComboBox
>
For some reason after set Container.Data ComboBox Text has Object.ToString() value rather than the Object.Code property value however items of combobox dispay proper values.
public TData Data
{
get { return _data; }
set
{
if (_data == value) return;
_data = value;
RaisePropertyChanged();
}
}
public TContainer Container
{
get { return _container; }
private set
{
if (_container == value) return;
_container = value;
RaisePropertyChanged();
}
}