Back to Devexpress

DashboardBuilder Class

dashboard-devexpress-dot-dashboardaspnetcore-c56db877.md

latest7.5 KB
Original Source

DashboardBuilder Class

Contains methods that allow you to customize the Web Dashboard.

Namespace : DevExpress.DashboardAspNetCore

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

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

csharp
public class DashboardBuilder :
    IHtmlContent
vb
Public Class DashboardBuilder
    Implements IHtmlContent

The following members return DashboardBuilder objects:

Show 32 links

Remarks

The code below shows how to customize the Web Dashboard by calling the Dashboard method in the View. The Width(Int32), Height(Int32), and WorkingMode(WorkingMode) methods are used in this example to configure the Web Dashboard. The code snippet also shows how to handle the DashboardControl‘s events and set the initial values for the extension options.

cshtml
<div style="position: absolute; left: 0; top: 0; right: 0; bottom: 0;">
@(Html.DevExpress().Dashboard("dashboardControl1")
    .ControllerName("DefaultDashboard")
    .Width("100%")
    .Height("100%")
    .OnBeforeRender("onBeforeRender")
    .OnDashboardInitializing("onDashboardInitializing")
    .Extensions(ext => {
        ext.DataInspector(opt => {
            opt.AllowInspectAggregatedData(true);
        });
        ext.DashboardExport(opt => {
            opt.AllowExportDashboard(true);
        });
    });
)
</div>

Inheritance

Object DashboardBuilder

See Also

DashboardBuilder Members

Create an ASP.NET Core Dashboard Application

Server-Side Configuration (ASP.NET Core)

DevExpress.DashboardAspNetCore Namespace