DashboardExportOptionBuilder.ExcelExportOptions(Action<DashboardExcelExportOptions>) Method

Contains options which define how the dashboard item is exported to the Excel format.

Namespace: DevExpress.DashboardAspNetCore

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

Declaration

public DashboardExportOptionBuilder ExcelExportOptions(
    Action<DashboardExcelExportOptions> config
)
Public Function ExcelExportOptions(
    config As Action(Of DashboardExcelExportOptions)
) As DashboardExportOptionBuilder

Parameters

Type Name Description
Action<DashboardExcelExportOptions> config

A delegate used to customize the DashboardExcelExportOptions object.

Returns

Type Description
DashboardExportOptionBuilder

A reference to this instance after the operation has completed.

The code sample below shows how to configure Excel export options:

@(Html.DevExpress().Dashboard("dashboardControl1")
    .Width("100%")
    .Height("100%")
    .OnBeforeRender("onBeforeRender")
    .Extensions(ext => {
        ext.DashboardExport(options => {
            options.ExcelExportOptions(excel => {
                excel.Format = DevExpress.DashboardCommon.ExcelFormat.Csv;
                excel.CsvValueSeparator = ",";
            });
        });
    })
)
See Also