The requested page is not available for the requested platform. You are viewing the content for Default platform.

DashboardExportOptionBuilder.OnExportDialogShowing(String) Method

A handler for the event occurring before the export dialog is shown.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v19.1.AspNetCore.dll

Declaration

public DashboardExportOptionBuilder OnExportDialogShowing(
    string onExportDialogShowing
)
Public Function OnExportDialogShowing(
    onExportDialogShowing As String
) As DashboardExportOptionBuilder

Parameters

Name Type Description
onExportDialogShowing String

A custom function that is executed before the export dialog is shown.

Returns

Type Description
DashboardExportOptionBuilder

A reference to this instance after the operation has completed.

Remarks

The code snippet below shows how to call a function before the export dialog is shown.

<script>
    function ExportDialogShowing() {
        // ...
    }
</script>
<div style="position: absolute; left: 0; top: 0; right: 0; bottom: 0;">
@(Html.DevExpress().Dashboard("dashboardControl1")
    .Width("100%")
    .Height("100%")
    .OnBeforeRender("onBeforeRender")
    .Extensions(ext => {
        ext.DashboardExport(options => {
            options.OnExportDialogShowing("ExportDialogShowing");
        });
    })
)
</div>
See Also