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

Export to HTML and col

5 Answers 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Taylor
Top achievements
Rank 1
Taylor asked on 25 Nov 2011, 10:16 AM
I am trying to export the grid to an HTML format.I do not want the default export behavior of defining col fixed widths during the export.  I set ExportVisualSettings to false in hopes that it might prevent the use of the fixed widths.  What is the correct way to not have fixed widths exported when working with HTML?

5 Answers, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 29 Nov 2011, 05:08 PM
Hi Taylor,

Thank you for writing.

From the information you have provided I cannot figure out what you want to accomplish. I would kindly ask you to specify in more details what you are trying to achieve, so I can provide you with accurate and meaningful support.

I am looking forward to your reply.

Regards,
Ivan Petrov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

0
Taylor
Top achievements
Rank 1
answered on 29 Nov 2011, 06:51 PM
Hello,

I do not want to have columns in the exported html table set to fixed widths.  By default, exporting the grid is producing html with col element tags such as <col style="width: 24px;"></col>.  I do not want the table I export into generated html to have these predefined col widths as I want the table to size more dynamically based on the content and styling of its cells.
0
Ivan Petrov
Telerik team
answered on 02 Dec 2011, 03:00 PM
Hello Taylor,

Thank you for the clarification.

I understand what you want, but currently this is not supported by the export to HTML functionality of RadGridView. I am happy, though, to inform you that this functionality will be added in our upcoming service pack, which is due at some point this month. We will also add functionality to handle the cell text wrapping which originates from the fact that you can set different column widths and text wrapping should also be handled. 

I hope you will find the new functionality useful. If you have other questions or feedback, we would love to hear it.

Best wishes,
Ivan Petrov
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

0
Taylor
Top achievements
Rank 1
answered on 20 Mar 2012, 07:40 AM
Now that this issue should have been addressed, how do I prevent the columns from having the cols with fixed widths?

Nm, I just found the property.
0
Ivan Petrov
Telerik team
answered on 21 Mar 2012, 05:57 PM
Hello Todd,

Thank you for writing.

I am glad you have found your way in this. In case anyone else is searching for the same information there is a section in our online documentation on ExportToHTML called Columns Width options which explains how to handle the widths of the columns and the cells text wrapping.

If you have further questions, I would be glad to help.

Greetings,
Ivan Petrov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Taylor
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Taylor
Top achievements
Rank 1
Share this question
or