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

RadGridView to CSV export

1 Answer 190 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Inderpal
Top achievements
Rank 1
Inderpal asked on 02 Jul 2014, 03:51 PM
When exporting data to CSV the column is not displaying full data .......................
how wide the column is...user has to increase the height of the
row to get this to display.  Most users overlook this and believe that the data
is missing from the Export file.

Code ----

 _exportManager.Export(gvDATA, exportFormat, new string[] { "----" }, null, true);

exportFormat == ExportFormat.Csv

Please suggest solution for this problem?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 03 Jul 2014, 07:11 AM
Hi,

Do you mean the width of the cell or the height of the row?

Generally, this will be the result if the columns are not into view as you export the data.
RadGridView exports the respective header cells with the minimum width value (which is 20 by default) if they have not been measured by the layout mechanism at the time the exporting operation takes place. To get all the columns exported with their actual width, you should first assure that they have all been realized.

You can also refer to the Export FAQ article for more details.

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
Inderpal
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or