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

Radgrid export to excel format issue

1 Answer 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 26 Feb 2014, 12:39 AM
in code behind, the following code will export the radgrid data to excel file.
but all the text had been wrap.


RadGrid1.ExportSettings.ExportOnlyData = True 
RadGrid1.ExportSettings.IgnorePaging = True
RadGrid1.MasterTableView.ExportToExcel()


if i manually select all the data and then click "Wrap Text" button to disable wrap text. the data seems good.

how can i disable the wrap function during export ? thanks















1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 28 Feb 2014, 01:33 PM
Hello Joe,

I am afraid that disabling the text wrapping is not possible. Nevertheless you could increase the column width in order to display the whole content. Please check out the Resizing/Aligning Columns section of the following help article for additional information.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or