Back to Devexpress

DashboardExportOptionBuilder.ExcelExportOptions(Action<DashboardExcelExportOptions>) Method

dashboard-devexpress-dot-dashboardaspnetcore-dot-dashboardexportoptionbuilder-dot-excelexportoptions-x28-system-dot-action-devexpress-dot-dashboardcommon-dot-dashboardexcelexportoptions-x29.md

latest2.6 KB
Original Source

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.v25.2.AspNetCore.dll

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

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

Parameters

NameTypeDescription
configAction<DashboardExcelExportOptions>

A delegate used to customize the DashboardExcelExportOptions object.

|

Returns

TypeDescription
DashboardExportOptionBuilder

A reference to this instance after the operation has completed.

|

Remarks

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

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

DashboardExportOptionBuilder Class

DashboardExportOptionBuilder Members

DevExpress.DashboardAspNetCore Namespace