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

Grid Header Export Problem

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stephen
Top achievements
Rank 1
Stephen asked on 09 Feb 2012, 03:09 PM
When calling the default export method for the grid it does not export header names but rather the data type name.

We are using the following to get wrapping on grid headers:

telerik:GridViewDataColumn DataMemberBinding="{Binding OpeningBalance, Mode=TwoWay, StringFormat=\{0:N0\} }" Width="80">

 

<telerik:GridViewDataColumn.Header><TextBlock Text="Opening Balance" TextWrapping="Wrap"/></telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>


1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Feb 2012, 03:14 PM
Hi,

 Please use ElementExporting event to set e.Value to desired. Custom headers, footers, templates etc. cannot be exported by default. 

All the best,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Stephen
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or