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

Possible bug at CSV export

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gian Carlo Zamboni
Top achievements
Rank 1
Gian Carlo Zamboni asked on 11 Aug 2008, 03:38 PM
I'm creating my grid programmatically at OnInit event, I was setting the export options for Excel, CSV and PDF.

This is my code for CSV export:
  protected void ibtExportCSV_Click(object sender, ImageClickEventArgs e) 
  { 
    RadGrid grid = (RadGrid)Place_Grilla.FindControl("Grilla"); 
    grid.Columns[0].Display = false
    grid.Columns[1].Display = false
    //grid.ExportSettings.Csv.ColumnDelimiter = GridCsvDelimiter.Tab; 
    grid.ExportSettings.Csv.RowDelimiter = GridCsvDelimiter.NewLine; 
    grid.ExportSettings.IgnorePaging = true
    grid.ExportSettings.ExportOnlyData = true
    grid.ExportSettings.OpenInNewWindow = true
    grid.MasterTableView.ExportToCSV(); 
  } 
If I set the ColumnDelimiter to Tab, the result file will be a Excel File (.xls), but if I comment that line, the result file the expected .csv

Best Regards,
Sebastián Reale

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 14 Aug 2008, 12:25 PM
Hello Gian,

I tried to reproduce the problem, but to no avail. Can you reproduce the problem with the attached project? If not, could you modify the project so that the problem appears and send the files back to us (in a formal support ticket).

Sincerely yours,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Gian Carlo Zamboni
Top achievements
Rank 1
Answers by
Missing User
Share this question
or