DataGrid / Scrolling / Virtual Mask Row

Blazor DataGrid Example - Virtual Mask Rows

Loading Syncfusion Blazor Server Demos…

This sample demonstrates the DataGrid virtual mask row feature for displaying loading indicators during on-demand data loading.

The Blazor DataGrid supports virtual mask rows, which display placeholder elements while new data is being loaded during vertical scrolling. This provides visual feedback to users that data is loading, improving perceived performance and user experience.

The DataGrid virtualization renders only visible rows and columns in the viewport without buffering the entire datasource. Enable virtual mask rows by setting the EnableVirtualMaskRow property to true.

Optimize virtual scrolling performance using the OverscanCount property, which renders additional items in the DOM before and after visible items (based on page size) during virtual scrolling and initial rendering. This reduces rendering frequency during scroll operations. In this demo, OverscanCount is set to 5.

Key features:

  • Virtual mask rows display while loading new data sets
  • DOM elements are reused to improve performance
  • OverscanCount reduces rendering operations during scrolling
  • Provides smooth scrolling experience with large datasets

Scroll vertically through the DataGrid to observe the virtual mask row loading indicators in action.

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