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

Exporting to excel - how to hide "Save As" dialog

2 Answers 173 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shilpa
Top achievements
Rank 1
Shilpa asked on 03 May 2011, 06:23 PM
I am using the grid view control and saving the grid rows to excel.
I was wondering if there is a way to specify the name of the file programatically and to not take it from the user.
The below function call always opens the Save As dialog -
                  RadGrid1.MasterTableView.ExportToExcel();

Any ideas would be greatly appreciated.
-Shilpa.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 03 May 2011, 09:53 PM
Hello Shilpa,

You can set the name via the ExportSettings property. Please take a look at this link:
Export overview

Best regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Shilpa
Top achievements
Rank 1
answered on 03 May 2011, 09:57 PM
Thanks Daniel, I shall have a look at it.

Regards,
Shilpa.
Tags
Grid
Asked by
Shilpa
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Shilpa
Top achievements
Rank 1
Share this question
or