Position popup open in Blazor Dropdown Menu Component
15 Apr 20251 minute to read
Popup open position can be changed according to the requirement. We have set the Popup open position using CssClass
property as custom
in Top
and Left
for the popup element.
In the following example, the Top
position of the popup element.
@using Syncfusion.Blazor.SplitButtons
<div style="margin: 150px auto; width: 250px;">
<SfDropDownButton Content="EDIT" CssClass="custom">
<DropDownMenuItems>
<DropDownMenuItem Text="Cut"></DropDownMenuItem>
<DropDownMenuItem Text="Copy"></DropDownMenuItem>
<DropDownMenuItem Text="Paste"></DropDownMenuItem>
</DropDownMenuItems>
</SfDropDownButton>
</div>
<style>
.custom.e-dropdown-popup {
margin: -135px -27px;
}
</style>