Class GridViewSpreadStreamExport
Represents a grid export that utilizes the RadSpreadStreamProcessing library.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Export
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewSpreadStreamExport
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
ChildViewExportMode
Gets or sets the child view export mode.
Declaration
public ChildViewExportMode ChildViewExportMode { get; set; }
Property Value
Child The child view export mode. |
ExportChildRowsGrouped
Gets or sets a value indicating whether to export hierarchy and group child rows grouped.
Declaration
public bool ExportChildRowsGrouped { get; set; }
Property Value
System.
|
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. |
ExportGroupedColumns
Gets or sets a value indicating whether to export grouped columns.
Declaration
public bool ExportGroupedColumns { get; set; }
Property Value
System.
|
ExportHierarchy
Gets or set if child rows should be exported.
Declaration
public bool ExportHierarchy { get; set; }
Property Value
System.
|
ExportViewDefinition
Gets or sets a value indicating whether to export view definition. Note that if using
RunExportAsync
method to export, the view definition will not be exported.
Declaration
public bool ExportViewDefinition { get; set; }
Property Value
System.
|
ExportVisualSettings
Gets or sets a value indicating whether the visual settings should be exported.
Declaration
public bool ExportVisualSettings { get; set; }
Property Value
System.
|
FileExportMode
Specifies whether a file will be exported as a new file, or if a file with the same name already exists at the specified path, a new sheet will be added to it.
Declaration
public FileExportMode FileExportMode { get; set; }
Property Value
File ExportAsNewSheetInExistingFile - will add a new sheet to the specified file, if it exists ExportInNewFile - will create/override the specified file |
FreezeHeaderRow
Gets or sets a value indicating whether to freeze the header row in the exported file.
Declaration
public bool FreezeHeaderRow { get; set; }
Property Value
System.
|
FreezePinnedColumns
Gets or sets a value indicating whether to freeze pinned columns.
Declaration
public bool FreezePinnedColumns { get; set; }
Property Value
System.
|
FreezePinnedRows
Gets or sets a value indicating whether to freeze pinned rows.
Declaration
public bool FreezePinnedRows { get; set; }
Property Value
System.
|
HiddenColumnOption
Gets or sets a value indicating how hidden columns are exported.
Declaration
public HiddenOption HiddenColumnOption { get; set; }
Property Value
Hidden The hidden column option. |
HiddenRowOption
Gets or sets a value indicating how hidden rows are exported.
Declaration
public HiddenOption HiddenRowOption { get; set; }
Property Value
Hidden The hidden row option. |
PagingExportOption
Gets or sets a value indicating how the export behaves when paging is enabled.
Declaration
public PagingExportOption PagingExportOption { get; set; }
Property Value
Paging The paging export option. |
RadGridViewToExport
Gets or sets the RadGridView to export.
Declaration
public RadGridView RadGridViewToExport { get; set; }
Property Value
Rad The RadGridView to export. |
SheetMaxRows
Gets or sets the maximum number of rows per sheet.
Declaration
[CLSCompliant(false)]
public ExcelMaxRows SheetMaxRows { get; set; }
Property Value
Excel The sheet max rows. |
SheetName
Gets or sets the name of the sheet.
Declaration
public string SheetName { get; set; }
Property Value
System. The name of the sheet. |
SummariesExportOption
Gets or sets a value indicating how summary rows are exported.
Declaration
public SummariesOption SummariesExportOption { get; set; }
Property Value
Summaries The summaries export option. |
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. |
OnCellFormatting(SpreadStreamCellFormattingEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellFormatting(SpreadStreamCellFormattingEventArgs e)
Parameters
Spread The Spread |
OnChildViewExporting(ChildViewExportingEventArgs)
Raises the Child
Declaration
protected virtual void OnChildViewExporting(ChildViewExportingEventArgs e)
Parameters
Child The Child |
OnExportCompleted(EventArgs)
Raises the Export
Declaration
protected virtual void OnExportCompleted(EventArgs e)
Parameters
System. The System. |
OnRowCreated(SpreadStreamRowEventArgs)
Raises the Row
Declaration
protected virtual void OnRowCreated(SpreadStreamRowEventArgs e)
Parameters
Spread The Spread |
OnRowExporting(SpreadStreamRowEventArgs)
Raises the Row
Declaration
protected virtual void OnRowExporting(SpreadStreamRowEventArgs e)
Parameters
Spread The Spread |
RunExport(Stream, ISpreadStreamExportRenderer)
Starts an export operation.
Declaration
public void RunExport(Stream exportStream, ISpreadStreamExportRenderer exportRenderer)
Parameters
System. The stream where data will be exported. |
ISpread Instance of ISpreadStreamExportRenderer class. |
RunExport(Stream, ISpreadStreamExportRenderer, String)
Starts an export operation, in the specified sheet. If such sheet does not exist, it gets created.
Declaration
public void RunExport(Stream exportStream, ISpreadStreamExportRenderer exportRenderer, string sheetName)
Parameters
System. The stream where data will be exported. |
ISpread Instance of ISpreadStreamExportRenderer class. |
System. Name of the sheet. |
RunExport(String, ISpreadStreamExportRenderer)
Starts an export operation.
Declaration
public void RunExport(string fileName, ISpreadStreamExportRenderer exportRenderer)
Parameters
System. The file name where data will be exported. |
ISpread Instance of ISpreadStreamExportRenderer class. |
RunExport(String, ISpreadStreamExportRenderer, String)
Starts an export operation, in the specified sheet. If such sheet does not exist, it gets created.
Declaration
public void RunExport(string fileName, ISpreadStreamExportRenderer exportRenderer, string sheetName)
Parameters
System. The file name where data will be exported. |
ISpread Instance of ISpreadStreamExportRenderer class. |
System. Name of the sheet. |
RunExportAsync(Stream, ISpreadStreamExportRenderer)
Starts an export operation that runs in a background thread.
Declaration
public void RunExportAsync(Stream exportStream, ISpreadStreamExportRenderer exportRenderer)
Parameters
System. The stream where data will be exported. |
ISpread Instance of ISpreadStreamExportRenderer class. |
RunExportAsync(Stream, ISpreadStreamExportRenderer, String)
Starts an async export operation, in the specified sheet. If such sheet does not exist, it gets created.
Declaration
public void RunExportAsync(Stream exportStream, ISpreadStreamExportRenderer exportRenderer, string sheetName)
Parameters
System. The stream where data will be exported. |
ISpread Instance of ISpreadStreamExportRenderer class. |
System. Name of the sheet. |
RunExportAsync(String, ISpreadStreamExportRenderer)
Starts an export operation that runs in a background thread.
Declaration
public void RunExportAsync(string fileName, ISpreadStreamExportRenderer exportRenderer)
Parameters
System. The file name where data will be exported. |
ISpread Instance of ISpreadStreamExportRenderer class. |
RunExportAsync(String, ISpreadStreamExportRenderer, String)
Starts an async export operation, in the specified sheet. If such sheet does not exist, it gets created.
Declaration
public void RunExportAsync(string fileName, ISpreadStreamExportRenderer exportRenderer, string sheetName)
Parameters
System. The file name where data will be exported. |
ISpread Instance of ISpreadStreamExportRenderer class. |
System. Name of the sheet. |
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.
|
CellFormatting
Occurs for every cell that is being exported.
Declaration
public event SpreadStreamCellFormattingEventHandler CellFormatting
Event Type
ChildViewExporting
Occurs when a child view will be exported.
Declaration
public event ChildViewExportingEventHandler ChildViewExporting
Event Type
ExportCompleted
Occurs when the export process completes.
Declaration
public event EventHandler ExportCompleted
Event Type
System.
|
RowCreated
Occurs when a new row is created in current worksheet. This is suitable place to set any row properties(like height) and/or add any indent cells.
Declaration
public event SpreadStreamRowEventHandler RowCreated
Event Type
RowExporting
Occurs when a spread row is about to be exported. This is suitable place to add any additional cells at the end of the row.
Declaration
public event SpreadStreamRowEventHandler RowExporting