Skip to main content
All docs
V24.1
.NET 6.0+
  • The page you are viewing does not exist in the .NET Framework 4.5.2+ platform documentation. This link will take you to the parent topic of the current section.

BlazorExportController.GridExported Event

Fires when the export operation finishes.

Namespace: DevExpress.ExpressApp.Blazor.SystemModule

Assembly: DevExpress.ExpressApp.Blazor.v24.1.dll

NuGet Package: DevExpress.ExpressApp.Blazor

Declaration

public event EventHandler<GridExportEventArgs> GridExported

Event Data

The GridExported event's data class is GridExportEventArgs. The following properties provide information specific to this event:

Property Description
ExportTarget Returns the target format of the exported document.
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 Returns an object that specifies export options.

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.

Export notification

See Also