Class GridViewSpreadStreamExport
Represents a grid export that utilizes the RadSpreadStreamProcessing library.
Inheritance
Namespace: Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport
Assembly: Telerik.Windows.Controls.GridView.SpreadsheetStreamingExport.dll
Syntax
public class GridViewSpreadStreamExport : Object
Constructors
GridViewSpreadStreamExport(RadGridView)
Initializes a new instance of the Grid
Declaration
public GridViewSpreadStreamExport(RadGridView radGridView)
Parameters
Rad The grid to export. |
GridViewSpreadStreamExport(RadGridView, SpreadStreamExportFormat)
Initializes a new instance of the Grid
Declaration
public GridViewSpreadStreamExport(RadGridView radGridView, SpreadStreamExportFormat spreadExportFormat)
Parameters
Rad The grid to export. |
Spread The spread export format. |
Properties
ExportFormat
Gets or sets the format of the exported file - XLSX or CSV.
Declaration
public SpreadStreamExportFormat ExportFormat { get; set; }
Property Value
Spread The file extension. |
SheetName
Gets or sets the name of the sheet.
Declaration
public string SheetName { get; set; }
Property Value
System. 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
public bool ShowLoadingIndicatorWhileAsyncExport { get; set; }
Property Value
System.
|
Methods
CancelExportAsync()
Cancels an asynchronous export operation.
Declaration
public void CancelExportAsync()
OnAsyncExportCompleted(AsyncCompletedEventArgs)
Raises the Async
Declaration
protected virtual void OnAsyncExportCompleted(AsyncCompletedEventArgs e)
Parameters
System. The System. |
OnAsyncExportProgressChanged(ProgressChangedEventArgs)
Raises the Async
Declaration
protected virtual void OnAsyncExportProgressChanged(ProgressChangedEventArgs e)
Parameters
System. The System. |
OnExportCompleted(EventArgs)
Raises the Export
Declaration
protected virtual void OnExportCompleted(EventArgs e)
Parameters
System. The System. |
RunExport(Stream, SpreadStreamExportRenderer)
Starts an export operation.
Declaration
public void RunExport(Stream exportStream, SpreadStreamExportRenderer exportRenderer)
Parameters
System. The stream where data will be exported. |
Spread 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
public void RunExport(Stream exportStream, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)
Parameters
System. The stream where data will be exported. |
Spread Instance of SpreadStreamExportRenderer class. |
Grid The GridViewSpreadStreamExport options. |
RunExport(String, SpreadStreamExportRenderer)
Starts an export operation.
Declaration
public void RunExport(string fileName, SpreadStreamExportRenderer exportRenderer)
Parameters
System. The file name where data will be exported. |
Spread 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
public void RunExport(string fileName, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)
Parameters
System. The file name where data will be exported. |
Spread Instance of SpreadStreamExportRenderer class. |
Grid The GridViewSpreadStreamExport options. |
RunExportAsync(Stream, SpreadStreamExportRenderer)
Starts an export operation that runs in a background thread.
Declaration
public void RunExportAsync(Stream exportStream, SpreadStreamExportRenderer exportRenderer)
Parameters
System. The stream where data will be exported. |
Spread 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
public void RunExportAsync(Stream exportStream, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)
Parameters
System. The stream where data will be exported. |
Spread Instance of SpreadStreamExportRenderer class. |
Grid The GridViewSpreadStreamExport options. |
RunExportAsync(String, SpreadStreamExportRenderer)
Starts an export operation that runs in a background thread.
Declaration
public void RunExportAsync(string fileName, SpreadStreamExportRenderer exportRenderer)
Parameters
System. The file name where data will be exported. |
Spread 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
public void RunExportAsync(string fileName, SpreadStreamExportRenderer exportRenderer, GridViewSpreadStreamExportOptions options)
Parameters
System. The file name where data will be exported. |
Spread Instance of SpreadStreamExportRenderer class. |
Grid The GridViewSpreadStreamExport options. |
Events
AsyncExportCompleted
Occurs when an async export operation is completed.
Declaration
public event AsyncCompletedEventHandler AsyncExportCompleted
Event Type
System.
|
AsyncExportProgressChanged
Occurs when the progress of an async export operation changes.
Declaration
public event ProgressChangedEventHandler AsyncExportProgressChanged
Event Type
System.
|
ElementExportedToDocument
Occurs after element export to XLSX or CSV.
Declaration
public event EventHandler<GridViewSpreadStreamElementExportedEventArgs> ElementExportedToDocument
Event Type
System.
|
ElementExportingToDocument
Occurs before element export to XLSX or CSV.
Declaration
public event EventHandler<GridViewSpreadStreamElementExportingEventArgs> ElementExportingToDocument
Event Type
System.
|
ExportCompleted
Occurs when the export process completes.
Declaration
public event EventHandler ExportCompleted
Event Type
System.
|