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

TreeListXlExportOptions.RowExpandMode Property

Specifies how the TreeList export nodes that contain child nodes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(TreeListExportRowExpandMode.KeepExpandState)]
public TreeListExportRowExpandMode RowExpandMode { get; set; }

#Property Value

Type Default Description
TreeListExportRowExpandMode KeepExpandState

An enumeration value.

Available values:

Name Description
None

All nodes are exported as a plain list (in the first outline).

KeepExpandState

If nodes are expanded when exported from the TreeList source, they remain expanded in the new document.

ExpandAll

All nodes are expanded.

CollapseAll

All nodes are collapsed.

#Remarks

The TreeList preserves row expansion state during export. Use the RowExpandMode property to expand or collapse all rows in the exported document, or to export all rows as a plain list.

The following example expands all nodes:

C#
async Task ExportXlsx_Click() {
    await MyTreeList.ExportToXlsxAsync("ExportResult", new TreeListXlExportOptions() {
        RowExpandMode = TreeListExportRowExpandMode.ExpandAll
    });
}
See Also