TreeListXlExportOptions.RowExpandMode Property
In This Article
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 |
---|---|---|
Tree |
Keep |
An enumeration value. |
Available values:
Name | Description |
---|---|
None | All nodes are exported as a plain list (in the first outline). |
Keep |
If nodes are expanded when exported from the Tree |
Expand |
All nodes are expanded. |
Collapse |
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