DxPopupBase.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.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public bool Scrollable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
The Popup’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. Note that when the scrollbar is enabled, the Popup calculates the maximum height and adds margins to add space between the Popup and the browser window.
You can set the Scrollable
property to false
to disable the scrollbar. Note that this property is also not in effect if you use the BodyTemplate.
<div @onclick="@(() => PopupVisible = true)">
<p>CLICK TO SHOW A POP-UP WINDOW</p>
</div>
<DxPopup @bind-Visible="@PopupVisible"
HeaderText="Header"
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."
Width="400px"
Height="200px"
Scrollable="false" />
@code {
bool PopupVisible { get; set; } = false;
}