Skip to main content
All docs
V26.1
  • DxDropDown.Scrollable Property

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

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v26.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 scrollbar 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 scrollbar. You can set the Scrollable property to false to prevent display of the scrollbar.

    <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 scrollbar

    See Also