Export to HTML and col

6 posts, 0 answers
  1. Taylor
    Taylor avatar
    17 posts
    Member since:
    Mar 2011

    Posted 25 Nov 2011 Link to this post

    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?
  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    705 posts

    Posted 29 Nov 2011 Link to this post

    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.

  3. Taylor
    Taylor avatar
    17 posts
    Member since:
    Mar 2011

    Posted 29 Nov 2011 Link to this post

    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.
  4. Ivan Petrov
    Admin
    Ivan Petrov avatar
    705 posts

    Posted 02 Dec 2011 Link to this post

    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.

  5. Taylor
    Taylor avatar
    17 posts
    Member since:
    Mar 2011

    Posted 20 Mar 2012 Link to this post

    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.
  6. Ivan Petrov
    Admin
    Ivan Petrov avatar
    705 posts

    Posted 21 Mar 2012 Link to this post

    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 >>
Back to Top