<Page x:Class="WpfBrowserApplication1.Page1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
      Title="Page1">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <telerik:RadGridView AutoExpandGroups="False" Height="500" Width="900" x:Name="grid" ItemsSource="{Binding Data}" AutoGenerateColumns="False"
                             DistinctValuesLoading="RadGridView1_DistinctValuesLoading">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactName}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Address}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding City}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding PostalCode}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <telerik:RadDataPager  Grid.Row="1" 
                               ItemCount="{Binding ItemCount, Mode=TwoWay}" 
                               PageSize="{Binding PageSize, Mode=TwoWay}" 
                               PageIndex="{Binding PageIndex, Mode=TwoWay}"  />
    </Grid>
</Page>
