Export

 
Selection
NameTypeMass, 1021 × kgRadius, kmVolume, 109 × km3Gravity, m/s2
Sun
Star1,989,100,000.00696,000.001,412,000,000.00274.00
Data grid with 1 rows and 7 columns
0 rows are selected

The DevExpress Blazor TreeList allows you to export data to XLS, XLSX, PDF, and CSV formats via the following data export methods:

This demo calls an export method once you click the "Export..." button. The options parameter allows you to customize the exported document:

  • The CustomizeCell event handler italicizes values in the Type column.
  • The CustomizePageFooter event handler adds page numbers to the page footer of PDF documents.
  • When the Export Selected Rows Only checkbox (above the TreeList component) is checked, our Blazor TreeList exports selected records and their parents (SelectedRowsExportMode is set to KeepHierarchy).

Note: Our Blazor TreeList exports data from all visible columns. To exclude a column from export operations, set the column's ExportEnabled property to false.