<UserControl x:Class="ClosePopupOnApplyFilter.MainPage"
    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:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
	xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
	xmlns:my="clr-namespace:ClosePopupOnApplyFilter"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid>
		<Grid>
			<telerik:RadGridView Name="clubsGrid" 
							 AutoGenerateColumns="False"
							 ColumnsWidthMode="Auto">
				<telerik:RadGridView.Columns>
					<telerik:GridViewDataColumn Header="Name" 
											DataMemberBinding="{Binding Name}">
						<i:Interaction.Behaviors>
							<my:ClosePopupOnApplyFilterBehavior />
						</i:Interaction.Behaviors>
					</telerik:GridViewDataColumn>

					<telerik:GridViewDataColumn Header="Est." 
											DataMemberBinding="{Binding Established}" 
											DataFormatString="{}{0:yyyy}"/>
					<telerik:GridViewDataColumn Header="Stadium" 
											DataMemberBinding="{Binding StadiumCapacity}" 
											DataFormatString="{}{0:N0}"/>
				</telerik:RadGridView.Columns>
			</telerik:RadGridView>
		</Grid>
	</Grid>
</UserControl>
