<Window x:Class="TestApplication.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:TestApplication" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <telerik:RadGridView x:Name="DataGridView" Margin="0,0,0,30"
                             ItemsSource="{Binding}"
                             AutoGenerateColumns="True"                              
                             CanUserInsertRows="False"
                             IsReadOnly="True"
                             ShowSearchPanel="True"
                             Grid.Row="0"
                             AutoGeneratingColumn="DataGridView_AutoGeneratingColumn"
                             RowDetailsVisibilityMode="VisibleWhenSelected"
                             CanUserSearchInHiddenColumns="True" 
                             SearchPanelCloseButtonVisibility="Hidden"
                             GridLinesVisibility="None"
                             SelectionMode="Extended"
                             SelectionUnit="FullRow">

            <telerik:RadGridView.Columns>
                <telerik:GridViewSelectColumn />
            </telerik:RadGridView.Columns>

            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <telerik:RadGridView ItemsSource="{Binding Contacts}"/>
                        <telerik:RadGridView ItemsSource="{Binding Timetables}" Grid.Row="1"/>
                    </Grid>
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>
    </Grid>
</Window>
