Back to Devexpress

DashboardConfigurator.Default Property

dashboard-devexpress-dot-dashboardweb-dot-dashboardconfigurator-3acdd6dd.md

latest4.8 KB
Original Source

DashboardConfigurator.Default Property

Gets the default DashboardConfigurator class instance.

Namespace : DevExpress.DashboardWeb

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

NuGet Package : DevExpress.Web.Dashboard.Common

Declaration

csharp
public static DashboardConfigurator Default { get; }
vb
Public Shared ReadOnly Property [Default] As DashboardConfigurator

Property Value

TypeDescription
DashboardConfigurator

The default DashboardConfigurator class instance.

|

Remarks

The Default property provides access to a default instance of the DashboardConfigurator class and allows you to use shared server-side settings. To learn more, see Server-Side API Overview.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Default property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-mvc-dashboard-register-data-sources/CS/MvcDashboardDataSources/App_Start/DashboardConfig.cs#L18

csharp
SqlDataSourceConfigurator.ConfigureDataSource(dataSourceStorage);
ExcelDataSourceConfigurator.ConfigureDataSource(DashboardConfigurator.Default, dataSourceStorage);
ObjectDataSourceConfigurator.ConfigureDataSource(DashboardConfigurator.Default, dataSourceStorage);

asp-net-mvc-dashboard-implement-server-side-export/CS/MvcDashboard_ServerExport/Controllers/HomeController.cs#L34

csharp
string uniqueId = "_" + dateTimeNow + ".pdf";
var exporter = new WebDashboardExporter(DashboardConfigurator.Default);
exporter.ExportToPdf(dashboardID, stream, new System.Drawing.Size(1024, 768), dashboardState, pdfOptions);

dashboard-constant-lines/CS/MvcDashboardSample/App_Start/DashboardConfig.cs#L32

csharp
ConstantLineModule clModule = new ConstantLineModule();
    clModule.Attach(DashboardConfigurator.Default);
}

asp-net-mvc-dashboard-register-data-sources/VB/MvcDashboardDataSources/App_Start/DashboardConfig.vb#L18

vb
SqlDataSourceConfigurator.ConfigureDataSource(dataSourceStorage)
ExcelDataSourceConfigurator.ConfigureDataSource(DashboardConfigurator.Default, dataSourceStorage)
ObjectDataSourceConfigurator.ConfigureDataSource(DashboardConfigurator.Default, dataSourceStorage)

asp-net-mvc-dashboard-implement-server-side-export/VB/MvcDashboard_ServerExport/Controllers/HomeController.vb#L31

vb
Dim uniqueId As String = "_" & dateTimeNow & ".pdf"
Dim exporter = New WebDashboardExporter(DashboardConfigurator.Default)
exporter.ExportToPdf(dbID, stream, New System.Drawing.Size(1024, 768), dbState, pdfOptions)

See Also

DashboardConfigurator Class

DashboardConfigurator Members

DevExpress.DashboardWeb Namespace