BlazorExportController.GridExported Event
Fires when the export operation finishes.
Namespace: DevExpress.ExpressApp.Blazor.SystemModule
Assembly: DevExpress.ExpressApp.Blazor.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Blazor
Declaration
Event Data
The GridExported event's data class is GridExportEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
ExportTarget | Inherited from GridExportEventArgsBase. |
Handled | Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs. |
Options | Inherited from GridExportEventArgsBase<T>. |
Remarks
Handle the GridExported
event to react to export completion.
using DevExpress.Blazor;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Blazor.SystemModule;
using DevExpress.ExpressApp.SystemModule;
// ...
public partial class CustomizeExportControllerBlazor : ViewController {
public CustomizeExportControllerBlazor() {
InitializeComponent();
TargetViewType = ViewType.ListView;
}
private BlazorExportController blazorExportController;
protected override void OnActivated() {
base.OnActivated();
blazorExportController = Frame.GetController<BlazorExportController>();
blazorExportController.GridExported += blazorExportController_GridExported;
}
void blazorExportController_GridExported(object sender, GridExportEventArgs e) {
Application.ShowViewStrategy.ShowMessage("Export successful!");
}
protected override void OnDeactivated() {
blazorExportController.GridExported -= blazorExportController_GridExported;
base.OnDeactivated();
}
}
The following image illustrates the message that appears when export is complete.
See Also