Export

 
Selection
Name Type Mass, 1021 × kg Radius, km Volume, 109 × km3 Gravity, m/s2
Sun
Star 1,989,100,000.00 696,000.00 1,412,000,000.00 274.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.