DxComboBox<TData, TValue>.ListRenderMode Property

Enables or disables virtual list rendering mode.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
[DefaultValue(ListRenderMode.Entire)]
public ListRenderMode ListRenderMode { get; set; }

Property Value

Type Default Description
ListRenderMode

Entire

One of the ListRenderMode values.

Available values:

Name Description
Entire

The editor loads the entire item list. Use this option for small item lists where scrolling should be instant.

Virtual

The editor loads visible items only. This approach improves performance when the list contains many items.

Remarks

The ListRenderMode property accepts the following values:

  • ListRenderMode.Entire — the editor renders the entire list at once. This is the default mode. Use it for short lists when rendering the whole list does not slow down performance.
  • ListRenderMode.Virtual — the editor renders list elements when they appear in the viewport. Use this mode to optimize rendering speed if you experience slow performance.
<DxComboBox ListRenderMode="ListRenderMode.Virtual"
            Data="@Data"
            @bind-Value="@Value" >
</DxComboBox>

Run Demo: ComboBox - Virtual Scrolling

See Also