Class
GridSpreadsheetExport<TBeforeExportEventArgs, TAfterExportEventArgs>

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TBeforeExportEventArgs

TAfterExportEventArgs

Syntax:

cs-api-definition
public abstract class GridSpreadsheetExport<TBeforeExportEventArgs, TAfterExportEventArgs> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Inheritance: objectComponentBaseGridSpreadsheetExport<TBeforeExportEventArgs, TAfterExportEventArgs>

Derived Classes: GridCsvExportGridExcelExportGridPdfExport

Implements: IComponentIHandleAfterRenderIHandleEvent

Inherited Members ComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnInitializedAsync()ComponentBase.OnParametersSet()ComponentBase.StateHasChanged()ComponentBase.ShouldRender()ComponentBase.OnAfterRender(bool)ComponentBase.OnAfterRenderAsync(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

GridSpreadsheetExport()

Declaration

cs-api-definition
protected GridSpreadsheetExport()

Properties

AllPages

Determines whether to export all data or only the current page. Set to true to export complete dataset regardless of pagination.

Declaration

cs-api-definition
[Parameter]
public bool AllPages { get; set; }

Property Value

bool

FileName

Name of the file to be generated when exporting Grid data. Include file extension like "MyData.xlsx" or "Reports.csv".

Declaration

cs-api-definition
[Parameter]
public virtual string FileName { get; set; }

Property Value

string

OnAfterExport

Event that fires after export completes. Use this to hide loading indicators, show success messages, or handle export results.

Declaration

cs-api-definition
[Parameter]
public EventCallback<TAfterExportEventArgs> OnAfterExport { get; set; }

Property Value

EventCallback<TAfterExportEventArgs>

OnBeforeExport

Event that fires before export starts. Use this to modify export settings, show loading indicators, or cancel export operations.

Declaration

cs-api-definition
[Parameter]
public EventCallback<TBeforeExportEventArgs> OnBeforeExport { get; set; }

Property Value

EventCallback<TBeforeExportEventArgs>

Methods

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides ComponentBase.OnParametersSetAsync()