I'm having some trouble with bind the RadComboBox properly - can you please give some input on this scenario:
I have a listbox which is bound to a collection of main_items
When a selection is made in the listbox I set the datacontext of the radcombobox to the listbox's selecteditem.
Basically I want to change a property in main_items with a the selected value in the radcombobox.
The radcombobox correctly lists all detail_items, but here the trouble starts.
The following radcombobox/code does not update the temp_id column of main_items properly when a selection is made
(sporadically it works, but when the datacontext changes all is lost) Is there something I have overlooked?
<telerik:RadComboBox ItemsSource="{Binding sub_items}" DisplayMemberPath="detail_name" SelectedValuePath="detail_id" SelectedValue="{Binding temp_id, Mode=TwoWay}">
</telerik:RadComboBox>
Public Class main_items
Public Property main_id As Guid
Public Property main_name As String
Public Property sub_items As EntityCollection(Of detail_items)
Public Property temp_id as Guid
End Class
Public Class detail_items
Public Property detail_id as Guid
Public Property detail_name as String
End Class