Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxDropDown.FooterTemplate Property

Specifies a template for the drop-down window’s footer. Replaces the default render fragment (including paddings, scrollbars, etc.)

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public RenderFragment<IPopupElementInfo> FooterTemplate { get; set; }

#Property Value

Type Description
RenderFragment<IPopupElementInfo>

The footer template.

#Remarks

Use the FooterTemplate property to display any UI render fragment in the window footer. This template changes the footer rendering, including paddings and inner content alignment. If you need to place custom content in the drop-down window’s footer but retain its default rendering, use the FooterContentTemplate instead.

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

Razor
<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">
    <FooterTemplate>
        <DxButton Text="OK" Click="@context.CloseCallback" />
    </FooterTemplate>
</DxDropDown>

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

Blazor DropDown Footer Content Template

The FooterTemplate property has priority over FooterText, FooterContentTemplate, and FooterTextTemplate properties.

See Also