Class
ExportToExcelML

Definition

Namespace:Telerik.WinControls.UI.Export

Assembly:TelerikData.dll

Syntax:

cs-api-definition
public class ExportToExcelML : IExportGridTo

Inheritance: objectExportToExcelML

Implements: IExportGridTo

Constructors

ExportToExcelML(RadGridView)

Declaration

cs-api-definition
public ExportToExcelML(RadGridView radGridView)

Parameters

radGridView

RadGridView

Properties

ChildViewExportMode

Gets or sets the child view export mode.

Declaration

cs-api-definition
public ChildViewExportMode ChildViewExportMode { get; set; }

Property Value

ChildViewExportMode

The child view export mode.

Encoding

Gets or sets the encoding used for the exported file. Default encoding is UTF8.

Declaration

cs-api-definition
public Encoding Encoding { get; set; }

Property Value

Encoding

ExportHierarchy

Set if child rows should be exported.

Declaration

cs-api-definition
public bool ExportHierarchy { set; }

Property Value

bool

ExportVisualSettings

Sets a value indicating whether the visual settings should be exported.

Declaration

cs-api-definition
public bool ExportVisualSettings { set; }

Property Value

bool

true if visual settings are exported; otherwise, false.

FileExtension

Sets the file extension of the exported file.

Declaration

cs-api-definition
public string FileExtension { set; }

Property Value

string

The file extension.

Implements IExportGridTo.FileExtension

HiddenColumnOption

Sets a value indicating how hidden columns are exported.

Declaration

cs-api-definition
public HiddenOption HiddenColumnOption { set; }

Property Value

HiddenOption

The hidden column option.

Implements IExportGridTo.HiddenColumnOption

HiddenRowOption

Sets a value indicating how hidden rows are exported.

Declaration

cs-api-definition
public HiddenOption HiddenRowOption { set; }

Property Value

HiddenOption

The hidden row option.

Implements IExportGridTo.HiddenRowOption

PagingExportOption

Sets a value indicating how the export behavies when paging is enabled.

Declaration

cs-api-definition
public PagingExportOption PagingExportOption { set; }

Property Value

PagingExportOption

The paging export option.

RadGridViewToExport

Sets the RadGridView to export.

Declaration

cs-api-definition
public RadGridView RadGridViewToExport { set; }

Property Value

RadGridView

The RadGridView to export.

Implements IExportGridTo.RadGridViewToExport

SheetMaxRows

Sets the sheet max rows.

Declaration

cs-api-definition
public ExcelMaxRows SheetMaxRows { set; }

Property Value

ExcelMaxRows

The sheet max rows.

SheetName

Sets the name of the sheet.

Declaration

cs-api-definition
public string SheetName { set; }

Property Value

string

The name of the sheet.

SummariesExportOption

Sets a value indicating how summary rows are exported.

Declaration

cs-api-definition
public SummariesOption SummariesExportOption { set; }

Property Value

SummariesOption

The summaries export option.

Implements IExportGridTo.SummariesExportOption

Methods

AddCustomExcelRow(TableElement, int, params object[])

Add custom row in the provided excel table element

Declaration

cs-api-definition
public SingleStyleElement AddCustomExcelRow(TableElement excelTableElement, int rowHeight, params object[] cellValues)

Parameters

excelTableElement

TableElement

Excel table element where the new row will be added

rowHeight

int

Custom row height in pixels. If 0 than the height has default value

cellValues

object[]

Values for the every excel cell in the custom row

Returns

SingleStyleElement

New row's style element for further formatting

OnChildViewExporting(ChildViewExportingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnChildViewExporting(ChildViewExportingEventArgs e)

Parameters

e

ChildViewExportingEventArgs

The ChildViewExportingEventArgs instance containing the event data.

OnExcelCellFormatting(ExcelCellFormattingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnExcelCellFormatting(ExcelCellFormattingEventArgs e)

Parameters

e

ExcelCellFormattingEventArgs

The ExcelCellFormattingEventArgs instance containing the event data.

OnExcelCellFormatting(ExcelRowFormattingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnExcelCellFormatting(ExcelRowFormattingEventArgs e)

Parameters

e

ExcelRowFormattingEventArgs

The ExcelRowFormattingEventArgs instance containing the event data.

OnExcelTableCreated(ExcelTableCreatedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnExcelTableCreated(ExcelTableCreatedEventArgs e)

Parameters

e

ExcelTableCreatedEventArgs

The ExcelTableCreatedEventArgs instance containing the event data.

RunExport(string)

Creates ExcelML file

Declaration

cs-api-definition
public void RunExport(string fileName)

Parameters

fileName

string

Export file name

Implements IExportGridTo.RunExport(string)

Events

ChildViewExporting

Occurs when a child view will be exported.

Declaration

cs-api-definition
public event ChildViewExportingEventHandler ChildViewExporting

Event Value

ChildViewExportingEventHandler

ExcelCellFormatting

Occurs for every cell that is being exported.

Declaration

cs-api-definition
public event ExcelCellFormattingEventHandler ExcelCellFormatting

Event Value

ExcelCellFormattingEventHandler

ExcelRowFormatting

Occurs for every row that is being exported.

Declaration

cs-api-definition
public event ExcelRowFormattingEventHandler ExcelRowFormatting

Event Value

ExcelRowFormattingEventHandler

ExcelTableCreated

Occurs when the excel table is created.

Declaration

cs-api-definition
public event ExcelTableCreatedEventHandler ExcelTableCreated

Event Value

ExcelTableCreatedEventHandler