On-demand loading
GridControlFetch rows, groups and totals as users need them, never the whole table at once.
Overview
On-demand loading lets a Blazor GridControl show an order history too large to load at once, fetching only what users scroll to or open. Set an ItemsProvider instead of DataSource: the grid calls it for each scroll window, sort, search or export with a GridItemsRequest, and you answer from your database or API with the items and a total. EnableProviderGrouping pages the group tree the same way.
Examples
#Twelve thousand orders, loaded group by group
Open a region, then a category, then Load more: each step sends one request to a provider behind a 90 ms delay, and Export all pages through every matching order with progress and Cancel.
| Region | Category | Order | Customer | Date | Qty | Amount |
|---|---|---|---|---|---|---|
| No records to display | ||||||
Waiting for the first request…
#A flat list, searched, sorted and paged by the provider
Type in the search box or sort a column and the next request carries SearchText or Sorts; the line under the grid describes the last request the provider answered.
| Code | Description | Supplier | Region | Destination | Category | Unit | Rate |
|---|---|---|---|---|---|---|---|
| No records to display | |||||||
Waiting for the first request…