<Window x:Class="GridViewComboBoxColumn_WPF.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
		xmlns:my="clr-namespace:GridViewComboBoxColumn_WPF"
		Title="MainWindow" Height="700" Width="700">
	<Window.Resources>
		<my:MyViewModel x:Key="MyViewModel"/>
	</Window.Resources>
	<Grid DataContext="{StaticResource MyViewModel}">		
		<telerik:RadGridView Name="playersGrid" 
							 RowDetailsVisibilityMode="VisibleWhenSelected"
							 ItemsSource="{Binding Players}" 
							 AutoGenerateColumns="False">
			<telerik:RadGridView.Columns>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Number}"/>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Position}"/>
				<telerik:GridViewDataColumn DataMemberBinding="{Binding Country}"/>
				<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ClubID}" 
												SortMemberPath="SortID"
												ItemsSource="{Binding Clubs, Source={StaticResource MyViewModel}}"
												SelectedValueMemberPath="ID" 
												DisplayMemberPath="Name" />							
			</telerik:RadGridView.Columns>
			<telerik:RadGridView.RowDetailsTemplate>
				<DataTemplate>
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition/>
							<RowDefinition/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="100"/>
							<ColumnDefinition />
						</Grid.ColumnDefinitions>
						<TextBlock Text="Player: " />
						<TextBox Text="{Binding Name, Mode=TwoWay}" Grid.Column="1"/>
						<TextBlock Text="Number: " Grid.Row="1" />
						<TextBox Text="{Binding Number,Mode=TwoWay}" Grid.Column="1" Grid.Row="1" />						
					</Grid>
				</DataTemplate>
			</telerik:RadGridView.RowDetailsTemplate>
		</telerik:RadGridView>		
	</Grid>
</Window>
