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

Export Encoding from RadGrid control

3 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 06 Nov 2014, 10:18 PM
I'm having an issue when exporting the contents of a RadGrid control to excel using the RadGrid1.MasterTableView.ExportToExcel() method. The output is not UTF8 encoded, and in some scenarios, the Â character is displayed before the next character. This happens for characters like the non-breaking space or degree character. I've spent some time looking through the documentation and object structure of the RadGrid control and I see no properties that I can set to force the output file to be UTF8 encoded. I'm currently running Version 2013.3.1114.35 and upgrading is NOT an option unfortunately. 

3 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 11 Nov 2014, 01:05 PM
Hello Steven,

I am afraid there isn't a property which can change the encoding but by default the output is UTF8 encoded. I prepared a small runnable sample with a different characters in it and as you can see they all are exported properly. Could you please give it a try and let me know how it differs from your real setup?

Regards,
Kostadin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Steven
Top achievements
Rank 1
answered on 11 Nov 2014, 03:58 PM
Thank you for your reply Kostadin.

There are some differences between my setup and your example though. My setup is using the Telerik.WebControls.RadGrid control and the export method I'm using is the one with 7 arguments. Your example is using the Telerik.Web.UI.RadGrid control. I'm not sure what differences there are between them, but I can see that your example is not having the issue that I'm having with special characters. Are there any fundamental differences between the two different RadGrid controls that would require any type of changes between the two export methods?

Thanks
0
Kostadin
Telerik team
answered on 14 Nov 2014, 08:30 AM
Hello Steven,

The difference between mine and yours RadGrid control is the version of RadControls that you are using. Keep in mind that Telerik.WebControls namespace was used in RadControls for ASP.NET while Telerik.Web.UI is used in RadControls for ASP.NET AJAX. I would recommend you to upgrade to a newer verison of RadControl becase the one which you are using is no longer supported. You can check out the following help article that describe how to migrate from RadGrid for ASP.NET to ASP.NET AJAX.

Regards,
Kostadin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Steven
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Steven
Top achievements
Rank 1
Share this question
or