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

[Solved] Export To CSV without double quote's

3 Answers 324 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gernot
Top achievements
Rank 1
Gernot asked on 27 Oct 2009, 11:07 AM
Hi,
is it possible to export to csv without double quotes?

I could not find any solution for this.

Many Thanks
Alaeddin

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 27 Oct 2009, 02:38 PM
Hello Alaeddin,

You can strip the quotes from the output this way:
protected void RadGrid1_GridExporting(object source, GridExportingArgs e)
{
    e.ExportOutput = e.ExportOutput.Replace("\"", "");
}

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gernot
Top achievements
Rank 1
answered on 27 Oct 2009, 03:15 PM
Thank you for your fast reply but you must be kidding.
What happens if the content has also quotes?

Cheers
Alaeddin
0
Daniel
Telerik team
answered on 27 Oct 2009, 03:47 PM
Alaeddin,

I believe we all know what will happen if you remove the quotes. Our CSV engine uses quotes to prevent problems when you have commas in the output. Since the desired scenario is not supported, I suggested a possible workaround - you are free to choose another one in case this is not suitable for you.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Gernot
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Gernot
Top achievements
Rank 1
Share this question
or