Back to Devexpress

DashboardExportOptionBuilder.OnExportDialogShowing(String) Method

dashboard-devexpress-dot-dashboardaspnetcore-dot-dashboardexportoptionbuilder-dot-onexportdialogshowing-x28-system-dot-string-x29.md

latest2.2 KB
Original Source

DashboardExportOptionBuilder.OnExportDialogShowing(String) Method

A handler for the event that occurs before the export dialog is shown.

Namespace : DevExpress.DashboardAspNetCore

Assembly : DevExpress.Dashboard.v25.2.AspNetCore.dll

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

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

Parameters

NameTypeDescription
onExportDialogShowingString

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

|

Returns

TypeDescription
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.

cshtml
<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

DashboardExportOptionBuilder Class

DashboardExportOptionBuilder Members

DevExpress.DashboardAspNetCore Namespace