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

Radgrid export to excel date format issue while using BiffExporting format

7 Answers 585 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hiren
Top achievements
Rank 1
Hiren asked on 04 Apr 2013, 07:47 AM
Hello,

I have issue with date format while export to excel the RadGrid,

I have set  ExportSettings-Excel-Format="Biff" format to avoid the warning message while open the excel sheet.

Now i have DateTime column in my RadGrid and i am exporting Radgrid view , but i am not able able change the datetime format while exporting to excel.

The format of DOS, follow up date, appt time and pick up time when exporting to excel (pic 2) should have the same format as in the (pic 1)

For more details please check the attach screen shot.

Let me know if you required more information.

Awaiting for the positive and quick response.

Thanks,
Hiren

7 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 09 Apr 2013, 08:33 AM
Hi Hiren,

I tried to replicate the issue but to no avail. Note that from Q1 2013 SP1 the DataFormatString of the RadGrid columns is applied to the exported file when using BIFF format. I prepared a small sample and attached to this forum thread. Please give it a try and let me know how it differs from your real setup.

Kind regards,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Hiren
Top achievements
Rank 1
answered on 11 Apr 2013, 09:50 AM
Hello Kostadin,

I am using the telerik version 2012.2.821.40.

Can you please  provide the dll for the Q1 2013 SP1 for testing ?

If it is working then i can download the hot fix.

Thanks
Hiren
0
Kostadin
Telerik team
answered on 16 Apr 2013, 06:32 AM
Hi Hiren,

You could log into your account and download the latest version from there. Additionally you could check out the following live example where you could see that the exported file has the same format as the grid.

Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Hans
Top achievements
Rank 1
answered on 15 May 2013, 06:21 AM
Hi Kostadin,

What exact version of RadGrid would that be?

We're using what I believe to be the very latest, Version=2013.1.220.40, and it does not care one bit about the DataFormatString when exporting to BIFF.

I still get only a number in the excel spreadsheet.

        <telerik:GridDateTimeColumn DataField="FailureDate" DataType="System.DateTime" DataFormatString="{0:yyyy-MM-dd}" FilterControlAltText="Filter FailureDate column" HeaderText="FailureDate" ReadOnly="True" SortExpression="FailureDate" UniqueName="FailureDate">
        </telerik:GridDateTimeColumn>

Shows correct in the grid
FailureDate
2010-12-21

2010-12-21


but like this in the excel, BIFF, file:
FailureDate
40533
40533

Regards,
Hans
0
Hans
Top achievements
Rank 1
answered on 17 May 2013, 08:26 AM
Hi,

To answer my own question.

DataFormaString works from, at least, 2013.1.403.40 version of the Telerik.Web.UI dll

Regards,
Hans
0
Kjell
Top achievements
Rank 1
Iron
answered on 03 Mar 2015, 03:56 PM
DataFormaString not works in Ipad.
In the excel, BIFF, file like: 40533
Works in grid and if i use a computer.
0
Kostadin
Telerik team
answered on 06 Mar 2015, 11:34 AM
Hello Kjell,

Note that the wrong formating of the date values is caused by the default Excel viewer of the iPad. If you are using some other viewer such as Microsoft Excel the format will be applied properly. 

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
Hiren
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Hiren
Top achievements
Rank 1
Hans
Top achievements
Rank 1
Kjell
Top achievements
Rank 1
Iron
Share this question
or