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

dynamic column header wrong in export to excel

1 Answer 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jonam
Top achievements
Rank 1
Jonam asked on 27 Aug 2012, 10:06 AM
Hello,

i have a dynamic column header.

<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding Fase1}" Width="100">

<telerik:GridViewCheckBoxColumn.Header>

 

<TextBlock Text="{Binding Fase1,Source={StaticResource Headers}}" />

 

</telerik:GridViewCheckBoxColumn.Header>

 

</telerik:GridViewCheckBoxColumn>


Headers is a class that simple contains the a property that supplies a string for Fase1.

Works fine but when i export the grid to excel the header gets the text System.Window.Controls.TextBlock instead of the string i have set for fase1. Do you have any resolution for this problem?

kind regards,

Jonam

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 30 Aug 2012, 07:25 AM
Hi Jonam,

 This is expected behavior when you are using custom header. In order to resolve this issue I suggest you to check this help article where the problem is described.

Don't hesitate to contact us if you have other questions.

Regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Jonam
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or