Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144096 | Apr 18,2019 08:06 AM UTC | Apr 19,2019 09:03 AM UTC | Xamarin.Forms | 1 |
![]() |
Tags: SfDataGrid |
[C#]
private void DataPager_OnDemandLoading(object sender, Syncfusion.SfDataGrid.XForms.DataPager.OnDemandLoadingEventArgs args)
{
dataPager.LoadDynamicItems(args.StartIndex, viewModel.OrdersInfo.Skip(args.StartIndex).Take(args.PageSize));
//Here we have modified the page count when we generate items for third page. Modify the pagecount based on your requirement.
if (args.StartIndex == 30)
{
//Initially 10 buttons are generated now changed to 5.
dataPager.PageCount = 5;
}
} |
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.