This is a migrated thread and some comments may be shown as answers.

How to specify the export excel file name

3 Answers 738 Views
Grid
This is a migrated thread and some comments may be shown as answers.
york
Top achievements
Rank 1
york asked on 24 Jun 2011, 09:55 PM
Hi,
I want to set the default name for saving export excel file. Currently the file name is RadGridExport.xls. Please help. Thanks.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Jun 2011, 05:38 AM
Hello York,

Try setting the FileName property in aspx as shown below.

aspx:
<ExportSettings Excel-Format="Html" ExportOnlyData="true" FileName="Customers" >
</ExportSettings>

Thanks,
Shinu
0
york
Top achievements
Rank 1
answered on 27 Jun 2011, 07:10 AM
Hi Shinu,
I want to modify filename dynamically in the codebehind file. How to do it?

Thanks
York
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 27 Jun 2011, 09:50 AM
Hi,

RadGrid1.ExportSettings.FileName = "Your File Name";


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
york
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
york
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Share this question
or