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

ExportToCSV last comma

3 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Developer Developer
Top achievements
Rank 1
Developer Developer asked on 22 Jul 2008, 12:47 PM
Does anybody know why .ExportToCSV() exports data in the following format?

header1,header2,header3,
r1value1,r1value2,r1value3,
r2value1,r2value2,rwvalue3,

as opposed to

header1,header2,header3
r1value1,r1value2,r1value3
r2value1,r2value2,rwvalue3

Notice how the second set of value doe not have the comma at the end of each line, which is what I was expecting.  Is there any way to not append the comma to the end of each line?

Any help would be greatly appreciated.  Thank you!

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 23 Jul 2008, 05:52 AM
Hi,

We have to admit such an issue exists in the current RadGrid but the good news is this is already addressed. The bug fix is included in the upcoming Q2 2008 version of RadGrid for ASP.NET AJAX which released will be officially announced later today.

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jaroslav
Top achievements
Rank 1
answered on 14 Jan 2013, 01:06 PM
Hi,

was this issue with comma at the end of the line already solved? We use Telerik 2010.3.1317.40 and still facing the problem with export.

Thank You

Jaroslav Mesik
0
Kostadin
Telerik team
answered on 17 Jan 2013, 09:59 AM
Hi Jaroslav,

On my side everything seems to work properly. I prepared a small sample where I used version Telerik 2010.3.1317.40 of our controls and attached it to this forum post. Additionally in the zip file you could find the exported csv file as well.

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.
Tags
Grid
Asked by
Developer Developer
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Jaroslav
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or