blazor-devexpress-dot-blazor-dot-treelistxlexportoptions-4aefec2c.md
Specifies how the TreeList export nodes that contain child nodes.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(TreeListExportRowExpandMode.KeepExpandState)]
public TreeListExportRowExpandMode RowExpandMode { get; set; }
| 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.
|
The TreeList preserves row expanded 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:
async Task ExportXlsx_Click() {
await MyTreeList.ExportToXlsxAsync("ExportResult", new TreeListXlExportOptions() {
RowExpandMode = TreeListExportRowExpandMode.ExpandAll
});
}
See Also