Skip to main content

DxDropDown.FooterContentTemplate Property

Specifies a template for content of the drop-down window’s footer.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public RenderFragment<IPopupElementInfo> FooterContentTemplate { get; set; }

Property Value

Type Description
RenderFragment<IPopupElementInfo>

The footer content.

Remarks

Use the FooterTextTemplate property to display any UI render fragment (for instance, formatted text) in the drop-down window body’s content area. This template does not affect the default content area rendering (that is, paddings, alignment, etc.)

The FooterContentTemplate accepts an IPopupElementInfo object as the context parameter. You can use the parameter’s CloseCallback property to implement the Close button.

<DxButton Id="showDDbtton" Click="() => IsOpenWindow = true">Show DropDown</DxButton>
<DxDropDown 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."
            Width="400"
            @bind-IsOpen="@IsOpenWindow"
            PositionTarget="#showDDbtton"
            PositionMode="DropDownPositionMode.Bottom"
            FooterVisible="true">
    <FooterContentTemplate>
        <DxButton Text="OK" Click="@context.CloseCallback" />
    </FooterContentTemplate>
</DxDropDown>

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

Blazor DropDown Footer Content Template

See Also