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