Hello,
I followed your tutorial to use the RadDataPager and RadGridView. The pager is bound to the view model source items and the Rad Grid View is bound to the RadDataPager. See the following example:
<Grid x:Name="LayoutRoot"
Background="White">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<telerik:RadGridView x:Name="radGridView"
ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
AutoGenerateColumns="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyName}" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding Title}" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
<telerik:RadDataPager x:Name="radDataPager"
Source="{Binding Employees}"
PageSize="5" />
</Grid>
I can see that the pager splits the items into pages of 50 items (I have 10 pages) but the RadGridView shows all the items. Only if I force the reload of the xaml (with Hot Reload), the RadGridView is updated according to the pager items in the current page, until that point all the items are shown.
What am I doing wrong?
Thank you martin.
I found some code in the attached property of my team that overrides the source items binding.
The control is working as expected.