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

How to add external data to CSV while exporting RadGrid

2 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 19 Jun 2013, 06:35 AM
Hi !

I have a RadGrid and I am exporting it to CSV file, working fine.

Now, What if I want to add some external data to the Top of that CSV file?

For example I am exporting grid in CSV file with headers

Id, Name
1, Aaa
2, Bbb
3, Ccc

Now on the Top of Id and Name I want to add row like,
Name : [AnyName]
Date : [Today's date]

is it possible? I have added them to caption but not working..

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 21 Jun 2013, 10:36 AM
Hello Devendra,

You can handle the GridExporting event and then modify the ExportOutput as per your needs.

Regards,
Daniel
Telerik
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 the blog feed now.
0
James
Top achievements
Rank 1
answered on 29 Jun 2013, 07:23 PM
 I found a link that will help you. Here it is http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx. There are several options and some explanation in a demo. Also I would to tell you CSVeasy. It is an ultimate CSV editor. It allows you edit imported csv files. Search it on the internet see if it helps. This post may give you an idea about csv editors http://www.techyv.com/questions/can-open-office-calc-software-use-csv-editor-mac.
Tags
Grid
Asked by
Dev
Top achievements
Rank 1
Answers by
Daniel
Telerik team
James
Top achievements
Rank 1
Share this question
or