DxPopupBase.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
[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 scroll bar.
You can set the Scrollable
property to false
to disable the scroll bar. 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;
}
See Also