I'm having a really hard time working this out so I'm hoping someone can slap me, tell me I'm stupid and point me in the right direction. I've got a RadComboBox loading into a Column a Telerik GridView. The item source for the combo box is loading from a collection which is a static resource. What I'm seeing is that the control loads correctly, including loading the correct selected item, then it refreshes and the selected item becomes null. I'm not up-to-speed with the silverlight control lifecycle so I've got no idea what's going on.
Any help would be very welcome.
Thanks
Cam
<telerikGridView:GridViewDataColumn IsReadOnly="True" Width="Auto" Header="Acquisition Method" DataMemberBinding="{Binding AcquisitionMethodID}"> |
<telerikGridView:GridViewDataColumn.CellTemplate> |
<DataTemplate> |
<telerikInput:RadComboBox x:Name="AcqMethod" |
Loaded="RadComboBox_Loaded" |
IsReadOnly="True" |
HorizontalAlignment="Left" |
VerticalAlignment="Top" |
Width="167" |
ItemsSource="{Binding Mode=OneWay, |
Source={StaticResource CodeTables}, |
Path=AcquisitionMethod}" |
SelectedValuePath="AcquisitionMethodID" |
SelectedValue="{Binding Mode=TwoWay, |
Path=AcquisitionMethodID}" |
DisplayMemberPath="AcquisitionMethod"/> |
</DataTemplate> |
</telerikGridView:GridViewDataColumn.CellTemplate> |
</telerikGridView:GridViewDataColumn> |
Any help would be very welcome.
Thanks
Cam