Skip to main content

DxDropDown.HeaderText Property

Specifies the text displayed in the window header.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string HeaderText { get; set; }

Property Value

Type Description
String

The header’s text.

Remarks

Set the HeaderVisible property to true to show the header in the drop-down window. Use the HeaderText property to specify the header’s text.

<style>
    .footer-style {
        font-weight: bold;
    }
</style>

<DxButton Id="showDDbtton" Click="() => IsOpen = true">Show a drop-down window</DxButton>
<DxDropDown HeaderVisible="true"
    HeaderText="Header"
    FooterVisible="true"
    FooterCssClass="footer-style"
    FooterText="Footer"
    Width="max(25vw, 300px)"
    BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet metus vel
        nisi blandit tincidunt vel efficitur purus. Nunc nec turpis tempus, accumsan orci auctor,
        imperdiet mauris. Fusce id purus magna."
    @bind-IsOpen="@IsOpen"
    PositionTarget="#showDDbtton"
    PositionMode="DropDownPositionMode.Bottom">
</DxDropDown>

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

Blazor DropDown Header CSS Class

See Also