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

Remove quotation marks from radgrid export

2 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos Gonzalez
Top achievements
Rank 1
Carlos Gonzalez asked on 01 Nov 2010, 06:31 PM
I have everything working for my radgrid export but need to make a small modification.  it is possible to remove the quotation marks delimiter?  see below

current:

"Trip_Number"|"PO_Number"|

desired:
Trip_Number|PO_Number|

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Nov 2010, 10:59 PM
Hello Carlos,

You could modify the generated CSV output in the GridExporting event:
void RadGrid1_GridExporting(object sender, GridExportingArgs e)
{
    if (e.ExportType == ExportType.Csv)
    {
        //...
    }
}

The simplest approach would be to replace the quotes directly.
e.ExportOutput = e.ExportOutput.Replace("\"", "");

Regards,
Daniel
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
0
Carlos Gonzalez
Top achievements
Rank 1
answered on 01 Nov 2010, 11:07 PM
Worked perfectly, thanks!
Tags
Grid
Asked by
Carlos Gonzalez
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Carlos Gonzalez
Top achievements
Rank 1
Share this question
or