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

Export GridView to XML and GroulColumnHeader problem

1 Answer 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 05 Jun 2014, 11:13 AM
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 ?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 05 Jun 2014, 02:49 PM
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.
 
Tags
GridView
Asked by
Paweł
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or