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

[Solved] Exporting Data to Excel in a specified format

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Meenakshi Nagalingam
Top achievements
Rank 1
Meenakshi Nagalingam asked on 05 Feb 2010, 01:22 PM

Hi,

I am using rad grid version 4.6.0.0.  I am exporting data to excel using GridExcelExportFormat.Html  format. The data is in 99-9999 format.

 

 

 

The issue is while exporting it converts this numeric data into Date format. I need to preserve this number-number format while exporting also.

If anybody know how to preserve the data format pls let me know.

Thanks in advance

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 05 Feb 2010, 02:55 PM
Hello Meenakshi,

You could set the desired data type (string in this scenario) using the mso-number-format style. You can use ItemCreated event for that purpose.

Word/Excel export (HTML-based)
Export to excel not showing datetime cells correctly

Regards,
Daniel
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
Meenakshi Nagalingam
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or