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

DxFlyout.FooterTemplate Property

Specifies a template for the 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 flyout window footer. This template changes the footer rendering, including paddings and inner content alignment. If you need to place custom content in the flyout 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 RenderStyle="ButtonRenderStyle.Secondary" Click="() => IsOpen = !IsOpen" Id="flyout-overview-target-container">SHOW A FLYOUT</DxButton>

<DxFlyout @bind-IsOpen=IsOpen
          PositionTarget="#flyout-overview-target-container"
          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="max(25vw, 250px)"
          FooterVisible="true">
    <FooterTemplate>
        <DxButton Text="OK" Click="@context.CloseCallback" />
    </FooterTemplate>
</DxFlyout>

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

Flyout Footer Template

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

See Also