.NET MAUI DataGrid Load On Demand
The Telerik UI for .NET MAUI DataGrid enables you to improve its performance and save computing resources, by loading data in the RadDataGrid when the control is already displayed.
To load a large data set on mobile devices, you can use incremental data loading at the time when the user requires the items to be visualized.
Modes
The DataGrid provides the following data-loading modes, which are present in the LoadOnDemandMode enumeration:
Automatic—The load-on-demand mechanism is activated when you scroll down near the last item present in the viewport.
To control when the items will start loading, set the
LoadOnDemandBufferItemsCountproperty. It indicates at which point the additional items will start loading. For example, setting it to20will cause the new items to be loaded when you have scrolled the DataGrid, so that only 20 of the originally loaded items are left below.
Manual—A Load More button is present at the bottom of the DataGrid. Tapping it loads additional items based on the approach you have chosen for loading the items (through the collection, the event, or the command).
When the
LoadOnDemandModeisAutomaticand grouping applies to the control, theLoadOnDemandModetransforms toManual.
Methods to Load Data on Demand
Use the following options to load data on demand, depending on your application requirements:
Styling
To customize the loading indicator and the Load More row, review the Load On Demand Styling article.
Additional Resources
- .NET MAUI DataGrid Product Page
- .NET MAUI DataGrid Forum Page
- Telerik .NET MAUI Blogs
- Telerik .NET MAUI Roadmap