Skip to main content
A newer version of this page is available. .

DxDropDown.Scrollable Property

Specifies whether the vertical scroll bar appears in the drop-down window if its content exceeds the window’s boundaries.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public bool Scrollable { get; set; }

Property Value

Type Default Description
Boolean true

true if the scroll bar can appear in the drop-down window; otherwise, false.

Remarks

The drop-down window’s height changes to fit its content. When the height is restricted and the content exceeds the window’s boundaries, the control displays a vertical scroll bar. You can set the Scrollable property to false to prevent display of the scroll bar.

<DxButton Id="showDDbtton" Click="() => IsOpen = true">Show a drop-down window</DxButton>
<DxDropDown PositionTarget="#showDDbtton"
            PositionMode="DropDownPositionMode.Bottom"
            @bind-IsOpen="@IsOpen"
            Height="150"
            Width="300"
            BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
            incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
            exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
            dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
            Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
            mollit anim id est laborum.">
</DxDropDown>

@code {
    bool IsOpen { get; set; } = false;
}

Blazor DropDown with Scroll Bar

See Also