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

    Hello.
    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:RadGridView.ColumnGroups>
                        <telerik:GridViewColumnGroup Name="Numer">
                            <telerik:GridViewColumnGroup.Header>
                                <TextBlock Text="Numer" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" />
                            </telerik:GridViewColumnGroup.Header>
                        </telerik:GridViewColumnGroup>
    (...)
      </telerik:RadGridView.ColumnGroups>

    And using it with column:

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

    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
    Admin
    Dimitrina avatar
    3769 posts

    Posted 05 Jun 2014 Link to this post

    Hi,

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

    Regards,
    Didie
    Telerik
     
    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