Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146591 | Aug 9,2019 09:54 AM UTC | Aug 14,2019 07:44 PM UTC | Xamarin.Forms | 3 |
![]() |
Tags: SfDataGrid |
<dataPager:SfDataPager x:Name ="SfDataPager"
Grid.Row="0"
PageSize="{DynamicResource DocumentsPageCount}"
NumericButtonCount="7"
Source="{Binding DocumentsCollection}"
OnDemandLoading="OnDemandPageLoading"
HorizontalOptions="FillAndExpand"
BackgroundColor="{StaticResource TpBlue}"
PageIndexChanged="SfDataPagerOnPageIndexChanged"
HeightRequest="50"
/>
[Xaml]
<Grid>
….
<sfPager:SfDataPager x:Name="dataPager"
OnDemandLoading="DataPager_OnDemandLoading"
UseOnDemandPaging="True"
NumericButtonCount="2"
PageSize="10"
PageCount="4"
Grid.Row="0"
HorizontalOptions="CenterAndExpand"/>
……
</Grid>
[cs]
private void DataPager_OnDemandLoading(object sender, Syncfusion.SfDataGrid.XForms.DataPager.OnDemandLoadingEventArgs e)
{
dataPager.LoadDynamicItems(e.StartIndex, viewModel.OrderInfoCollection.Skip(e.StartIndex).Take(e.PageSize));
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.