Hi,
I have a combobox that has the ItemsSource bound to an
observablecollection of Priority objects. Priority objects have and ID
and a Description.
My combobox is in a DataTemplate for a listBoxItem that is bound to
another collection of objects. Filter objects, which have a
FilterPriorityID property
I set the combobox.DisplayMemberPath="Description" which seems fine.
I set the SelectedValuePath="{Binding FilterPriorityID}" expecting
the combobox to auto select the correct Priority using the
FilterPriorityID. but this is not the case.
Seems i am missing something, coming from Winforms.
Gary
<
telerik:RadComboBox
ItemsSource
=
"{Binding Path=DataContext.EventFilterPriorites, RelativeSource={RelativeSource AncestorType=UserControl}}"
SelectedValuePath
=
"{Binding Path=EventFilterPriorityID}"
DisplayMemberPath
=
"Description"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
Height
=
"25"
Margin
=
"3"
Width
=
"100"
/>