Skip to main content
All docs
V24.1

DxTreeList.FooterDisplayMode Property

Specifies when to display the footer in the TreeList.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[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