Save as Dialog in Changing the file name before exporting to Excel (Pivot)

Hi team, 


Hereunder is what I find in your site..  

<SfButton OnClick="OnExcelExport" Content="Excel Export"></SfButton>
 public void OnExcelExport(Microsoft.AspNetCore.Components.Web.MouseEventArgs args) {
        Syncfusion.Blazor.Grids.ExcelExportProperties excelExportProperties = new Syncfusion.Blazor.Grids.ExcelExportProperties()
        {
            FileName = "sample.xlsx"
        };
        this.pivot.ExportToExcelAsync(excelExportProperties);\

 How can I apply save as or Save file dialog on it. ?

So the user may change the file path and  filename dynamically before the download

Best regard,

Tyrone


3 Replies

MM Manikandan Murugesan Syncfusion Team September 21, 2021 09:25 AM UTC

 
Kindly refer to the following sample to customize exporting file name through dialog. 
 
 
Also, please change the browser settings to specify where the downloaded file should be saved. Please see the image below. 
Screenshot: 
 
Please let us know if you have any concerns. 
 
Regards, 
Manikandan. 



TY Tyrone September 22, 2021 08:03 AM UTC

Thanks  Manikandan, 

I applied the filename change and learned lots of pivot properties as well.. 

btw, I'm still clueless about the browse setting to change the path.. 

As you mentioned. How will I do this  

"Also, please change the browser settings to specify where the downloaded file should be saved. Please see the image below.

   

Best Regards, 

Tyrone







MM Manikandan Murugesan Syncfusion Team September 22, 2021 02:12 PM UTC

Hi Tyrone, 

Kindly refer the following video to know more about the browser settings to specify where the downloaded file should be saved. 


Please let us know if you have any concerns. 
 
Regards,  
Manikandan 


Loader.
Up arrow icon