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

Custom ColumnDelimiter doesn't work for header/footer using GridViewCsvExportOptions

1 Answer 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 28 Jun 2010, 09:57 AM
Hi

I need to overwrite the system set culture separator when exporting data from a RadGridView (Silverlight Q1 2010 SP2), and tried using the following code:

using (Stream stream = dialog.OpenFile()) 
    gridView.Export(stream, 
      new GridViewCsvExportOptions 
      { 
          Format = ExportFormat.Csv, 
          UseSystemCultureSeparator = false
          ColumnDelimiter = ";"
          ShowColumnHeaders = true
          ShowColumnFooters = true
          ShowGroupFooters = true 
      }); 

The resulting CSV file still has a regular comma as delimiter in the header and footer (but body looks ok):

"TimeStamp","MyColumn1","MyColumn2","MyColumn3" 
"10.05.2010 01:00:00";"10,7751265";"3,18367815";"66,6837845" 
"10.05.2010 00:00:00";"107,876794234912";"15,4229010277885";"52,9556193073591" 
"","","","" 

Is this a known bug? Will it be fixed in Q2 release?

Many thanks,
Anders Austad

1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 28 Jun 2010, 10:13 AM
Hi Anders,

 Yes, this is a known issue and a fix has already been incorporated for Q2.

By the way, you don't need to specify ExportFormat with GridViewCsvExportOptions. It's hard-coded to CSV.

Kind regards,
Yavor Georgiev
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
Tags
GridView
Asked by
Anders
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or