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


    i have a dynamic column header.

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



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





    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,

  2. Yoan
    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.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top