Hi,
I want to export a grid to Excel by having a filename plus a datetime stamp (code is listed below). However, the code does not export file. no error is generated.
public async Task ToolbarClickHandler(Syncfusion.Blazor.Navigations.ClickEventArgs args)
{
if (args.Item.Id == "Grid_excelexport") //Id is combination of Grid's ID and itemname
{
string Myfilename = String.Format("Temperature logging {0}.csv",
DateTime.UtcNow.ToString("yyyy-MM-dd HH-mm-ss"));
ExcelExportProperties ExportProperties = new ExcelExportProperties();
ExportProperties.ExportType = Syncfusion.Blazor.Grids.ExportType.AllPages;
ExportProperties.FileName = Myfilename; //"Stock_Status.xlsx";
ExportProperties.IncludeHiddenColumn = true;
ExportProperties.IncludeTemplateColumn = true;
await this.GLDefaultGrid.ExportToExcelAsync(ExportProperties);
}
}
Best regards
Sao