Hello,
I have a problem with exporting RadGridView using ToCsv() andToExcelML() methods.
While using AutoGenerateColumns property set to true everything works fine.
However, when I'm trying to create columns in code in such a way:
| Telerik.Windows.Controls.GridViewDataColumn c1 = new Telerik.Windows.Controls.GridViewDataColumn(); |
| c1.Header = "Name"; |
| c1.CellTemplate = (DataTemplate)this.Resources["NameColumnTemplate"]; |
| radGridView.Columns.Add(c1); |
with DataTemplate defined in XAML:
| <DataTemplate x:Key="NameColumnTemplate"> |
| <TextBlock Text="{Binding Path=Name}"/> |
| </DataTemplate> |
In this case everything looks fine and RadGridView displays columns properly, but ToCsv() methods creates a string consist only of white spaces.
Is there any solution to this problem?
Regards
