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

Exporting date fields to excel

1 Answer 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ramyashree
Top achievements
Rank 1
Ramyashree asked on 09 May 2011, 01:14 PM
Hi ,
    I have a grid view where in I've one of the columns as a date field... The field is of the type DateTime and I'm using a converter to display only the date part according to the system date format as set by the user.... I need to export the same format to the excel sheet as well.... Any way of doing it...?

Thanks in advance,
Ramyashree 

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 09 May 2011, 01:20 PM
Hello Ramyashree,

You may use the ElementExporting event to apply additional formatting to data.
You may see this event in action in this online demo.  /please have a look at the code section/.

All the best,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ramyashree
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or