Skip to main content
All docs
V24.2

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

DxTreeList.FooterDisplayMode Property

Specifies when to display the footer in the TreeList.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(TreeListFooterDisplayMode.Auto)]
[Parameter]
public TreeListFooterDisplayMode FooterDisplayMode { get; set; }

#Property Value

Type Default Description
TreeListFooterDisplayMode Auto

An enumeration value.

Available values:

Name Description
Auto

The footer is visible if it displays total summary values or your custom footer template. Otherwise, the footer is hidden.

Never

The footer is always hidden even if it contains total summary values or if you specify a custom footer template.

Always

The footer is always visible regardless of its content.

#Remarks

The default FooterDisplayMode property value is Auto. In this mode, the TreeList shows the footer only if it displays total summary values or your custom footer template. You can set the FooterDisplayMode property to Always or Never to display or hide the footer regardless of total summary values.

The following example changes the footer display mode to Always:

Blazor TreeList Footer Display Mode Always

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData"
            KeyFieldName="Id"
            ParentKeyFieldName="ParentId" 
            FooterDisplayMode="TreeListFooterDisplayMode.Always">
    <Columns>
        <DxTreeListDataColumn FieldName="Name" Caption="Task" />
        <DxTreeListDataColumn FieldName="EmployeeName" />
        <DxTreeListDataColumn FieldName="StartDate" />
        <DxTreeListDataColumn FieldName="DueDate" />
    </Columns>
</DxTreeList>

@code {
    List<EmployeeTask> TreeListData { get; set; }

    protected override void OnInitialized() {
        TreeListData = EmployeeTaskService.GenerateData();
    }
}

To customize the appearance of the footer and/or its cells, handle the CustomizeElement event.

#Implements

See Also