From 200a1fa69ad0fe1cf4b281b874145164c94e34f1 Mon Sep 17 00:00:00 2001 From: Naveen S P Date: Fri, 14 Aug 2026 18:58:35 +0530 Subject: [PATCH 1/2] 1046286: Paging Revamp Updated --- blazor/datagrid/paging.md | 105 ++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 55 deletions(-) diff --git a/blazor/datagrid/paging.md b/blazor/datagrid/paging.md index 0d63fbd673..c68d2425b0 100644 --- a/blazor/datagrid/paging.md +++ b/blazor/datagrid/paging.md @@ -9,17 +9,17 @@ documentation: ug # Paging in Blazor Data Grid -Paging provides an option to display [Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) data in segmented pages, making it easier to navigate large datasets. This feature is particularly useful when dealing with extensive data sets. +Paging provides an option to display [Blazor DataGrid](https://www.syncfusion.com/blazor-components/blazor-datagrid) data in segmented pages, making it easier to navigate large datasets. Paging is particularly useful when dealing with extensive datasets. To enable paging, set the [AllowPaging](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_AllowPaging) property to **true**. When paging is enabled, a pager is rendered at the bottom of the Grid, allowing navigation through different pages of data. Paging options can be configured through the [GridPageSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_PageSettings) component. GridPageSettings allows control of page size, current page, and total record count. -> For large data sources, paging improves performance by fetching and rendering only a subset of records per page. For remote data, combine paging with server-side data retrieval to avoid loading all records at once. +> For large data sources, paging improves performance by fetching and rendering only a subset of records per page. For remote data, combine paging with server-side data retrieval to avoid loading all records at once. See the [Remote Data](https://blazor.syncfusion.com/documentation/datagrid/data-binding/remote-data) documentation for more details. ## Customize the pager options -Customizing pager options in Blazor DataGrid helps adjust pagination to specific needs. The **PageCount** property sets the number of numeric buttons. The **CurrentPage** property defines the active page. The **PageSize** property specifies the number of records displayed per page. The **PageSizes** property provides a dropdown for selecting different page sizes. +Customizing pager options in Blazor DataGrid helps adjust pagination to specific needs. The **PageCount** property sets the number of numeric buttons. The **CurrentPage** property defines the active page. The **PageSize** property specifies the number of records displayed per page. The **PageSizes** property provides a dropdown for selecting different page sizes. ### Change the page size @@ -59,7 +59,7 @@ The Blazor DataGrid allows control over the number of records displayed per page { GridData = OrderData.GetAllRecords(); } - private async Task ValueChangeHandler(Syncfusion.Blazor.Inputs.ChangeEventArgs args) + private void ValueChangeHandler(Syncfusion.Blazor.Inputs.ChangeEventArgs args) { if(args.Value != null && args.Value != 0) { @@ -129,7 +129,7 @@ The Blazor DataGrid allows control over the number of records displayed per page The Blazor DataGrid allows adjusting the number of numeric buttons displayed in the pager. By default, **PageCount is 8**. -To change the page count, use the [PageCount](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridPageSettings.html#Syncfusion_Blazor_Grids_GridPageSettings_PageCount) property in [GridPageSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_PageSettings), which defines how many pages are shown in the pager container. +To change the page count, use the [PageCount](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.GridPageSettings.html#Syncfusion_Blazor_Grids_GridPageSettings_PageCount) property in [GridPageSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Grids.SfGrid-1.html#Syncfusion_Blazor_Grids_SfGrid_1_PageSettings), which sets the number of numeric buttons displayed in the pager. {% tabs %} {% highlight razor tabtitle="Index.razor" %} @@ -164,7 +164,7 @@ To change the page count, use the [PageCount](https://help.syncfusion.com/cr/bla { GridData = OrderData.GetAllRecords(); } - private async Task ValueChangeHandler(Syncfusion.Blazor.Inputs.ChangeEventArgs args) + private void ValueChangeHandler(Syncfusion.Blazor.Inputs.ChangeEventArgs args) { if (args.Value != null && args.Value != 0) { @@ -270,7 +270,7 @@ To change the current page, use the [CurrentPage](https://help.syncfusion.com/cr { GridData = OrderData.GetAllRecords(); } - private async Task ValueChangeHandler(Syncfusion.Blazor.Inputs.ChangeEventArgs args) + private void ValueChangeHandler(Syncfusion.Blazor.Inputs.ChangeEventArgs args) { if (args.Value != null && args.Value != 0) { @@ -350,9 +350,6 @@ To use the pager template, specify the [Template](https://help.syncfusion.com/cr