New to Telerik UI for WPFStart a free 30-day trial

Represents a grid export that utilizes the RadSpreadStreamProcessing library.

Definition

Namespace:Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport

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

Syntax:

C#
public class GridViewSpreadStreamExport

Inheritance: objectGridViewSpreadStreamExport

Constructors

Initializes a new instance of the GridViewSpreadStreamExport class.

C#
public GridViewSpreadStreamExport(RadGridView radGridView, SpreadStreamExportFormat spreadExportFormat)
Parameters:radGridViewRadGridView

The grid to export.

spreadExportFormatSpreadStreamExportFormat

The spread export format.

Initializes a new instance of the GridViewSpreadStreamExport class.

C#
public GridViewSpreadStreamExport(RadGridView radGridView)
Parameters:radGridViewRadGridView

The grid to export.

Properties

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

C#
public SpreadStreamExportFormat ExportFormat { get; set; }
Property Value:

The file extension.

Gets or sets the name of the sheet.

C#
public string SheetName { get; set; }
Property Value:

The name of the sheet.

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

C#
public bool ShowLoadingIndicatorWhileAsyncExport { get; set; }

Methods

Cancels an asynchronous export operation.

C#
public void CancelExportAsync()

Raises the event.

C#
protected virtual void OnAsyncExportCompleted(AsyncCompletedEventArgs e)
Parameters:eAsyncCompletedEventArgs

The AsyncCompletedEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnAsyncExportProgressChanged(ProgressChangedEventArgs e)
Parameters:eProgressChangedEventArgs

The ProgressChangedEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnExportCompleted(EventArgs e)
Parameters:eEventArgs

The EventArgs instance containing the event data.

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

C#
public void RunExport(Stream exportStream, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)
Parameters:exportStreamStream

The stream where data will be exported.

exportRendererSpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

optionsGridViewSpreadStreamExportOptions

The GridViewSpreadStreamExport options.

Starts an export operation.

C#
public void RunExport(Stream exportStream, SpreadStreamExportRenderer exportRenderer)
Parameters:exportStreamStream

The stream where data will be exported.

exportRendererSpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

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

C#
public void RunExport(string fileName, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)
Parameters:fileNamestring

The file name where data will be exported.

exportRendererSpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

optionsGridViewSpreadStreamExportOptions

The GridViewSpreadStreamExport options.

Starts an export operation.

C#
public void RunExport(string fileName, SpreadStreamExportRenderer exportRenderer)
Parameters:fileNamestring

The file name where data will be exported.

exportRendererSpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

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

C#
public void RunExportAsync(Stream exportStream, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)
Parameters:exportStreamStream

The stream where data will be exported.

exportRendererSpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

optionsGridViewSpreadStreamExportOptions

The GridViewSpreadStreamExport options.

Starts an export operation that runs in a background thread.

C#
public void RunExportAsync(Stream exportStream, SpreadStreamExportRenderer exportRenderer)
Parameters:exportStreamStream

The stream where data will be exported.

exportRendererSpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

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

C#
public void RunExportAsync(string fileName, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)
Parameters:fileNamestring

The file name where data will be exported.

exportRendererSpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

optionsGridViewSpreadStreamExportOptions

The GridViewSpreadStreamExport options.

Starts an export operation that runs in a background thread.

C#
public void RunExportAsync(string fileName, SpreadStreamExportRenderer exportRenderer)
Parameters:fileNamestring

The file name where data will be exported.

exportRendererSpreadStreamExportRenderer

Instance of SpreadStreamExportRenderer class.

Events

Occurs when an async export operation is completed.

C#
public event AsyncCompletedEventHandler AsyncExportCompleted

Occurs when the progress of an async export operation changes.

C#
public event ProgressChangedEventHandler AsyncExportProgressChanged

Occurs after element export to XLSX or CSV.

C#
public event EventHandler<GridViewSpreadStreamElementExportedEventArgs> ElementExportedToDocument

Occurs before element export to XLSX or CSV.

C#
public event EventHandler<GridViewSpreadStreamElementExportingEventArgs> ElementExportingToDocument

Occurs when the export process completes.

C#
public event EventHandler ExportCompleted