Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.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.v25.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
    DocumentOptions Stores PDF export options.
    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 Stores CSV, XLS, and XLSX export 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.

    Export notification

    See Also