ExportToHTML
Definition
Namespace:Telerik.WinControls.UI.Export
Assembly:TelerikData.dll
Syntax:
public class ExportToHTML : IExportGridTo
Inheritance: objectExportToHTML
Implements:
Constructors
Create instance of exporter class with specified RadGridView to export
public ExportToHTML(RadGridView gridToExport)
RadGridView to export
Properties
Gets or sets a value indicating whether the columns width should be calculated based on the content of the cells or should be fixed.
public bool AutoSizeColumns { get; set; }
Gets or sets the child view export mode.
public ChildViewExportMode ChildViewExportMode { get; set; }
The child view export mode.
Gets or sets the encoding used for the exported file. Default encoding is UTF8.
public Encoding Encoding { get; set; }
Set if child rows should be exported.
public bool ExportHierarchy { set; }
Gets or sets a value indicating whether to export images.
public bool ExportImages { get; set; }
Set to export visual settings e.g. background colors, font, alignment, conditional formatting etc. Default value: false.
public bool ExportVisualSettings { set; }
Set the file extension. Default value is htm.
public string FileExtension { set; }
Implements:
Set the width in milimeters to fit the table in.
public int FitWidthSize { set; }
Set if to export hidden column.
public HiddenOption HiddenColumnOption { set; }
Implements:
Set if to export hidden rows.
public HiddenOption HiddenRowOption { set; }
Implements:
Sets a value indicating how the export behavies when paging is enabled.
public PagingExportOption PagingExportOption { set; }
The paging export option.
Set RadGridView that would be exported.
public RadGridView RadGridViewToExport { set; }
Implements:
Set the table size scaling. Default value is 1. For example, scale of 1.2 means 20% size increase.
public float Scale { set; }
Gets or sets a value indicating whether to scale exported images.
public bool ScaleImages { get; set; }
Set how to export summary rows.
public SummariesOption SummariesExportOption { set; }
Implements:
Set html table border thickness. Default value is 0
public int TableBorderThickness { set; }
Set html table caption.
public string TableCaption { set; }
Methods
protected virtual void EscapeSpecialChars(CellElement htmlCellElement)
protected virtual void OnChildViewExporting(ChildViewExportingEventArgs e)
protected virtual void OnHTMLCellFormatting(HTMLCellFormattingEventArgs e)
Fires when html table was created and provides access to its caption element
protected virtual void OnHTMLTableCaptionFormatting(HTMLTableCaptionFormattingEventArgs e)
Creates file in html format.
Events
Occurs when a child view will be exported.
public event ChildViewExportingEventHandler ChildViewExporting
Fires when an html cell object was created and needs to be formatted.
public event HTMLCellFormattingEventHandler HTMLCellFormatting
Occurs when html table was created and provides access to its caption element
public event HTMLTableCaptionFormattingEventHandler HTMLTableCaptionFormatting