Blazor Scheduler Example - Export to Excel
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This example demonstrates how to export the Scheduler events to an Excel file format.
In this example, the Scheduler events data are exported to an Excel file by using the public method ExportToExcelAsync. By default, the whole event collection bound to the Scheduler is exported as an Excel file. To export only specific events of Scheduler, pass the custom data collection as a parameter to the ExportToExcelAsync method. This method accepts export options as its arguments such as FileName, ExportType, Fields, CustomData, and IncludeOccurrences. The FileName denotes the name to be given for the exported file, and the ExportType allows you to set the format of the Excel file to be exported as either .xlsx or .csv. The custom or specific field collection of the event dataSource to be exported can be provided through FieldsInfo option, and the custom data collection can be exported by passing them through the CustomData option. There also exists an option to export individual instances of recurring events to an Excel file by setting true or false to the IncludeOccurrences option, denoting either to include or exclude the occurrences as separate instances in an exported Excel file.