EnumDropDownScrollMode
Controls how dropdown components handle scrolling through data items, affecting performance and user experience with different dataset sizes. Determines whether all items are rendered immediately or only visible items are rendered dynamically as users scroll.
Definition
Namespace:Telerik.Blazor
Assembly:Telerik.Blazor.dll
Syntax:
public enum DropDownScrollMode
Fields
Scrollable
Renders all dropdown items immediately and uses standard browser scrolling behavior. Provides smooth, native scrolling experience with instant item access and no loading delays. Best for small to medium datasets (under 500 items) where performance is not a concern. Requires setting the popup Height to enable scrolling when the item count exceeds the visible area.
Virtual
Renders only the visible items plus a small buffer, creating new items dynamically as users scroll. Significantly improves performance and reduces memory usage for large datasets by avoiding DOM bloat. Essential for datasets over 1000 items to maintain responsive user interfaces and prevent browser slowdowns. Requires configuring ItemHeight and PageSize parameters to calculate proper positioning and rendering. Use with OnRead event for server-side data loading to handle extremely large datasets efficiently.