Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146941 | Aug 26,2019 01:36 PM UTC | Aug 27,2019 12:26 PM UTC | Xamarin.Forms | 1 |
![]() |
Tags: SfDataGrid |
[Mainpage.xaml.cs]
<sfPager:SfDataPager x:Name="dataPager"
OnDemandLoading="DataPager_OnDemandLoading"
UseOnDemandPaging="True"
NumericButtonCount="10"
PageSize="10"
PageCount="80"
Grid.Row="0"
/>
<sfGrid:SfDataGrid Grid.Row="1"
x:Name="dataGrid"
AutoGenerateColumns="False"
ColumnSizer="Star"
ItemsSource="{Binding PagedSource, Source={x:Reference dataPager}}">
.....
</sfGrid:SfDataGrid>
[Mainpage.xaml.cs]
private void DataPager_OnDemandLoading(object sender, Syncfusion.SfDataGrid.XForms.DataPager.OnDemandLoadingEventArgs e)
{
dataPager.LoadDynamicItems(e.StartIndex, viewModel.OrdersInfo.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.