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

[Solved] Export to CSV - Name is Changed When Open using IE7

3 Answers 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 01 Oct 2009, 11:53 PM
Hello,

I am doing an export to CSV for a grid.
When testing in IE7, when opening the file (in excel) without saving first, the file name is converted to its URL Encoded equivalent.
e.g. %53%74%6f%72%65%45%78%70%6f%72%.csv
We have determined that this behavior is specific to IE7 and only occurs if opening the file, not saving the file first.

Export settings:
//set the export settings  
rgStoreManagement.ExportSettings.FileName = "StoreExport";  
rgStoreManagement.ExportSettings.OpenInNewWindow = true;  
rgStoreManagement.ExportSettings.IgnorePaging = true;  
rgStoreManagement.ExportSettings.ExportOnlyData = true;  
 
//export to csv  
rgStoreManagement.MasterTableView.ExportToCSV(); 


Is there a work around?

Thanks,
Jon

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 06 Oct 2009, 04:35 PM
Hello Jon,

Our developers already fixed this issue and you will be able to download it in the next few days from the internal builds section.
Latest Internal Builds

Let me know if you need more information.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mike
Top achievements
Rank 1
answered on 18 Feb 2010, 10:26 PM
This still seems to be a problem.  I just installed the latest version of the ASP.NET Controls for AJAX  (2009.3.1314.35) and I am using IE8.  When I set the RadGrid.ExportSettings.FileName to "Unit List" and then choose to open the file instead of save the file it comes up in Excel as the page's name not "Unit List".  Doing the same in Firefox results in the correct file name.  Can you confirm that this bug has indeed been fixed in the latest version?

Thanks,

Mike
0
Daniel
Telerik team
answered on 19 Feb 2010, 09:59 PM
Hello Mike,

This is an issue in Internet Explorer and has nothing to do with the previous problem. When you set content-disposition: inline, the filename attribute is ignored. We tried several workarounds, but no luck so far.

Excuse us for the inconvenience.

Kind regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Mike
Top achievements
Rank 1
Share this question
or