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
[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:
async Task ExportXlsx_Click() {
await MyTreeList.ExportToXlsxAsync("ExportResult", new TreeListXlExportOptions() {
RowExpandMode = TreeListExportRowExpandMode.ExpandAll
});
}
See Also