Class
GridViewSpreadStreamExport

Represents a grid export that utilizes the RadSpreadStreamProcessing library.

Definition

Namespace:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport

Assembly:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable")]
public class GridViewSpreadStreamExport

Inheritance: objectGridViewSpreadStreamExport

Constructors

GridViewSpreadStreamExport(RadGridView)

Initializes a new instance of the GridViewSpreadStreamExport class.

Declaration

cs-api-definition
public GridViewSpreadStreamExport(RadGridView radGridView)

Parameters

radGridView

RadGridView

The grid to export.

GridViewSpreadStreamExport(RadGridView, SpreadStreamExportFormat)

Initializes a new instance of the GridViewSpreadStreamExport class.

Declaration

cs-api-definition
public GridViewSpreadStreamExport(RadGridView radGridView, SpreadStreamExportFormat spreadExportFormat)

Parameters

radGridView

RadGridView

The grid to export.

spreadExportFormat

SpreadStreamExportFormat

The spread export format.

Properties

ExportFormat

Gets or sets the format of the exported file - XLSX or CSV.

Declaration

cs-api-definition
public SpreadStreamExportFormat ExportFormat { get; set; }

Property Value

SpreadStreamExportFormat

The file extension.

SheetName

Gets or sets the name of the sheet.

Declaration

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

Property Value

string

The name of the sheet.

ShowLoadingIndicatorWhileAsyncExport

Gets or sets a value indicating whether a RadBusyIndicator will be shown while async export operation is running.

Declaration

cs-api-definition
public bool ShowLoadingIndicatorWhileAsyncExport { get; set; }

Property Value

bool

Methods

CancelExportAsync()

Cancels an asynchronous export operation.

Declaration

cs-api-definition
public void CancelExportAsync()

OnAsyncExportCompleted(AsyncCompletedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnAsyncExportCompleted(AsyncCompletedEventArgs e)

Parameters

e

AsyncCompletedEventArgs

The AsyncCompletedEventArgs instance containing the event data.

OnAsyncExportProgressChanged(ProgressChangedEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnAsyncExportProgressChanged(ProgressChangedEventArgs e)

Parameters

e

ProgressChangedEventArgs

The ProgressChangedEventArgs instance containing the event data.

OnExportCompleted(EventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnExportCompleted(EventArgs e)

Parameters

e

EventArgs

The EventArgs instance containing the event data.

RunExport(Stream, SpreadStreamExportRenderer)

Starts an export operation.

Declaration

cs-api-definition
public void RunExport(Stream exportStream, SpreadStreamExportRenderer exportRenderer)

Parameters

exportStream

Stream

The stream where data will be exported.

exportRenderer

SpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

RunExport(Stream, SpreadStreamExportRenderer, GridViewSpreadStreamExportOptions)

Starts an export operation, in the specified sheet. If such sheet does not exist, it gets created.

Declaration

cs-api-definition
public void RunExport(Stream exportStream, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)

Parameters

exportStream

Stream

The stream where data will be exported.

exportRenderer

SpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

options

GridViewSpreadStreamExportOptions

The GridViewSpreadStreamExport options.

RunExport(string, SpreadStreamExportRenderer)

Starts an export operation.

Declaration

cs-api-definition
public void RunExport(string fileName, SpreadStreamExportRenderer exportRenderer)

Parameters

fileName

string

The file name where data will be exported.

exportRenderer

SpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

RunExport(string, SpreadStreamExportRenderer, GridViewSpreadStreamExportOptions)

Starts an export operation, in the specified sheet. If such sheet does not exist, it gets created.

Declaration

cs-api-definition
public void RunExport(string fileName, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)

Parameters

fileName

string

The file name where data will be exported.

exportRenderer

SpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

options

GridViewSpreadStreamExportOptions

The GridViewSpreadStreamExport options.

RunExportAsync(Stream, SpreadStreamExportRenderer)

Starts an export operation that runs in a background thread.

Declaration

cs-api-definition
public void RunExportAsync(Stream exportStream, SpreadStreamExportRenderer exportRenderer)

Parameters

exportStream

Stream

The stream where data will be exported.

exportRenderer

SpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

RunExportAsync(Stream, SpreadStreamExportRenderer, GridViewSpreadStreamExportOptions)

Starts an async export operation, in the specified sheet. If such sheet does not exist, it gets created.

Declaration

cs-api-definition
public void RunExportAsync(Stream exportStream, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)

Parameters

exportStream

Stream

The stream where data will be exported.

exportRenderer

SpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

options

GridViewSpreadStreamExportOptions

The GridViewSpreadStreamExport options.

RunExportAsync(string, SpreadStreamExportRenderer)

Starts an export operation that runs in a background thread.

Declaration

cs-api-definition
public void RunExportAsync(string fileName, SpreadStreamExportRenderer exportRenderer)

Parameters

fileName

string

The file name where data will be exported.

exportRenderer

SpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

RunExportAsync(string, SpreadStreamExportRenderer, GridViewSpreadStreamExportOptions)

Starts an async export operation, in the specified sheet. If such sheet does not exist, it gets created.

Declaration

cs-api-definition
public void RunExportAsync(string fileName, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)

Parameters

fileName

string

The file name where data will be exported.

exportRenderer

SpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

options

GridViewSpreadStreamExportOptions

The GridViewSpreadStreamExport options.

Events

AsyncExportCompleted

Occurs when an async export operation is completed.

Declaration

cs-api-definition
public event AsyncCompletedEventHandler AsyncExportCompleted

Event Value

AsyncCompletedEventHandler

AsyncExportProgressChanged

Occurs when the progress of an async export operation changes.

Declaration

cs-api-definition
public event ProgressChangedEventHandler AsyncExportProgressChanged

Event Value

ProgressChangedEventHandler

ElementExportedToDocument

Occurs after element export to XLSX or CSV.

Declaration

cs-api-definition
public event EventHandler<GridViewSpreadStreamElementExportedEventArgs> ElementExportedToDocument

Event Value

EventHandler<GridViewSpreadStreamElementExportedEventArgs>

ElementExportingToDocument

Occurs before element export to XLSX or CSV.

Declaration

cs-api-definition
public event EventHandler<GridViewSpreadStreamElementExportingEventArgs> ElementExportingToDocument

Event Value

EventHandler<GridViewSpreadStreamElementExportingEventArgs>

ExportCompleted

Occurs when the export process completes.

Declaration

cs-api-definition
public event EventHandler ExportCompleted

Event Value

EventHandler