Blazor DataGrid Example - Lazy Load with Paging

DataGrid / Grouping / Lazy Load with Paging

This sample demonstrates lazy loading with grouping and paging in the DataGrid component. In this sample, the data is grouped by the Product Name column.

Loading Syncfusion Blazor Server Demos…

Product Name
1 of 4 pages (76 items)

The Blazor DataGrid is configured for lazy loading by setting the EnableLazyLoading property to true in the GridGroupSettings and enabling paging by setting the AllowPaging property to true. The number of records displayed per page can be controlled using the PageSize property from GridPageSettings.

In this sample, the DataGrid is initially grouped by the Product Name column, displaying only the caption rows in a collapsed view. When a caption row is expanded, the corresponding grouped records are loaded dynamically based on the defined page size. This approach avoids rendering the entire grouped dataset at once, resulting in improved performance and efficient handling of large datasets.

More information about the lazy loading grouping feature can be found in this documentation section.

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE