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

[Solved] "$" and "%" symbols are missing when exporting Grid to Excel

1 Answer 165 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Qaja Mohiddin
Top achievements
Rank 1
Qaja Mohiddin asked on 13 Nov 2009, 10:48 AM
Hi,

I am dynamically creating the 'GridNumericColumn' Columns in the Grid.By using "DataFormatString" property I am convering to currency, Percentage formats. I am able to see the "$" and "%" symbol in Grid. But in the Excel sheet (after exporting Grid to Excel), those symbols are missing. Could anybody suggest me what would be the problem?

Thanks,
Malli

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Nov 2009, 03:19 PM
Hello Qaja,

You can set the appropriate style on OnExcelExportCellFormatting event which is raised when RadGrid is exported to Excel (before the resulting document is rendered on the client). This event can be used for applying formatting to a cell. For instance adding numeric format to cell’s value by adding mso-number-format style attributes.

Regards,
Pavlina
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.
Tags
Grid
Asked by
Qaja Mohiddin
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or