Example of Virtualization in Blazor ComboBox Component
This example demonstrates the virtualization support of the ComboBox. The component has 150 items bound to it; however, when you open the dropdown popup, only few items are loaded based on the popup height, and the remaining items are loaded while scrolling.
The ComboBox supports virtualization, which improves UI performance for large amounts of data.
To enable virtualization, set the EnableVirtualization property to true
.
When virtualization is enabled, ComboBox doesn't render the entire data source on initial component rendering.
It loads the N number of items in the popup on initial rendering and the remaining set number of items will load while scrolling.
Virtualization works with both local and remote data.