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

Export changes blanks in file name to plus sign in IE

1 Answer 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Diane Wilson
Top achievements
Rank 2
Diane Wilson asked on 27 Jul 2017, 06:48 PM

We have RadGrids configured to export to CSV, Excel, or PDF. The file names are explicitly set in GridExportSettings.FileName based on grid content, such as "Patient Status Choices". In IE11, this file name is changed by replacing blanks with plus signs, e.g., "Patient+Status+Choices". This does not happen in Edge or Chrome.

Is there a way to get IE to export using the file name exactly as we specify?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 01 Aug 2017, 02:28 PM
Hi Diane,

The experienced issue is related to a browser behavior that, unfortunately, cannot be controlled by us. Even if the filename is encoded before the file creation, the browser parses the spaces in the file name as plus signs. This issue and possible workarounds for it are discussed in the following SO thread, so you can take a look and see if any of the suggestions is applicable to your scenario:
https://stackoverflow.com/questions/1561533/why-does-httputility-urlencodehttputility-urldecode20-return-instead-of

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Diane Wilson
Top achievements
Rank 2
Answers by
Vessy
Telerik team
Share this question
or