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

[Solved] How to customize the layout details of the document files exported from the RadGridView control

1 Answer 129 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.
SPE
Top achievements
Rank 1
SPE asked on 18 Mar 2013, 07:47 AM
Hi,

I've been using the 'export' function of RadGridView control.

Generally it works all fine, but therere are some minor problems in the default layout details of the exported files especially in xls and csv format.

As the column width is fixed in the exported files in xls and csv formats, the contents within the cell (mainly in 'dates' form) are often displayed as ######### with random text alignments. Also, phone numbers that does not include hyphens are expressed in scientific numbers (010-5252-5252 becomes 1.05E+09).

Is there any way to preview and customize (or at least to handle it through codes) the layout details of the columns and texts of the exported documents at individual levels?

Thank you in advance for your kind reply :)

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 19 Mar 2013, 12:06 PM
Hello,

In order to customize the layout details, you could subscribe for the ElementExporting event of the RadGridView and change the e.Value to be exported as explained in this help article

I hope this is what you need.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
SPE
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or