dynamic column header wrong in export to excel

2 posts, 0 answers
  1. Jonam
    Jonam avatar
    19 posts
    Member since:
    Aug 2010

    Posted 27 Aug 2012 Link to this post

    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
  2. Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 30 Aug 2012 Link to this post

    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.

Back to Top