<Window x:Class="ComboBox_MissingValuesOnScroll.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerikG="http://schemas.telerik.com/2008/xaml/presentation"
		xmlns:local="clr-namespace:ComboBox_MissingValuesOnScroll"
        Title="MainWindow" Height="350" Width="525">
	<Window.Resources>
		<local:ExpositionType x:Key="ExpositionType" />		
	</Window.Resources>
	<Grid>
		<telerikG:RadGridView x:Name="ExpositionRules" 
                                 AutoGenerateColumns="False"
                                 SelectionMode="Single"  FontSize="14"
                                 AllowDrop="False" CanUserDeleteRows="False"
                                 CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False"
                                 ShowGroupPanel="False" RowIndicatorVisibility="Collapsed"
                                 ScrollMode="Deferred"
                                 AutoExpandGroups="True" IsEnabled="True" IsReadOnly="False">
			<telerikG:RadGridView.Columns>
				<telerikG:GridViewDataColumn Header="Netto" DataMemberBinding="{Binding Netto}"/>
				<telerikG:GridViewDataColumn Header="Type" MinWidth="200">
					<telerikG:GridViewDataColumn.CellTemplate>
						<DataTemplate>							
							<telerikG:RadComboBox ItemsSource="{Binding ExpositionTypes, Source={StaticResource ExpositionType}}" SelectedItem="{Binding Type}">
							</telerikG:RadComboBox>
						</DataTemplate>
					</telerikG:GridViewDataColumn.CellTemplate>					
				</telerikG:GridViewDataColumn>

				<telerikG:GridViewDataColumn Header="DynamicColumn" MinWidth="200" DataMemberBinding="{Binding SelectedExpositionType}">
					<telerikG:GridViewDataColumn.CellTemplate>
						<DataTemplate>
							<ComboBox ItemsSource="{DynamicResource DynamicExpositionTypes}" 
									  DisplayMemberPath="Name"
									  SelectedValue="{Binding SelectedExpositionType}" 
									  SelectedValuePath="Numerator" />
						</DataTemplate>
					</telerikG:GridViewDataColumn.CellTemplate>
				</telerikG:GridViewDataColumn>
			</telerikG:RadGridView.Columns>
		</telerikG:RadGridView>
	</Grid>
</Window>
