<Window x:Class="RadGridView_WPF_AR_7.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:local="clr-namespace:RadGridView_WPF_AR_7"
  xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"
  VerticalAlignment="Center" HorizontalAlignment="Center">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True" />
        <telerik:RadGridView Grid.Row="0" Name="clubsGrid" CanUserFreezeColumns="False"
                                MinHeight="386" MaxHeight="500" Width="700"
							    AutoGenerateColumns="False"
							    ColumnWidth="*"
							    ShowGroupPanel="False"
							    RowIndicatorVisibility="Collapsed"
							    IsReadOnly="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Club"
                                     DataMemberBinding="{Binding Name}"
                                     IsFilterable="False">
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="Founded"
                                     DataMemberBinding="{Binding Established}"
                                     DataFormatString="{}{0:yyyy}">
                    <telerik:GridViewDataColumn.FilteringControl>
                        <local:FromDateToDateFilterControl/>
                    </telerik:GridViewDataColumn.FilteringControl>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <Button Name="ClearFilter"
                Content="Clear filter" 
                Click="ButtonClearFilter_Click"
                Margin="5"
                HorizontalAlignment="Left"/>
        </StackPanel>
    </Grid>
</Window>
