Export GridView to XML and GroulColumnHeader problem

2 posts, 0 answers
  1. Paweł
    Paweł avatar
    46 posts
    Member since:
    May 2013

    Posted 05 Jun 2014 Link to this post

    I'm using this great example for exporting grid to xml: http://www.telerik.com/help/wpf/gridview-export.html.
    Problem is that, I have ColumnGroups declared like:

                        <telerik:GridViewColumnGroup Name="Numer">
                                <TextBlock Text="Numer" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" />

    And using it with column:

                        <telerik:GridViewDataColumn Name="col5" DataMemberBinding="{Binding Nazwa dokumentu}" Header="Wewnętrzny" Tag="nazwa" ColumnGroupName="Numer">
                                <telerik:CountFunction Caption="Liczba dokumentów: "></telerik:CountFunction>

    Well, it does export to xml, but with this little problem: http://puu.sh/9g0pQ/c92b2e57f8.png

    How can I export content (text) of textblock instead of System.Windows.Controls.TextBlock ?
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 05 Jun 2014 Link to this post


    You can check the Export Custom Header article on how to achieve the desired result.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top