Back to Devexpress

DashboardBuilder.OnDashboardInitializing(String) Method

dashboard-devexpress-dot-dashboardaspnetcore-dot-dashboardbuilder-dot-ondashboardinitializing-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

DashboardBuilder.OnDashboardInitializing(String) Method

Specifies the JavaScript function (or its name) executed when the DashboardInitializing event is raised.

Namespace : DevExpress.DashboardAspNetCore

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

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

csharp
public DashboardBuilder OnDashboardInitializing(
    string onDashboardInitializing
)
vb
Public Function OnDashboardInitializing(
    onDashboardInitializing As String
) As DashboardBuilder

Parameters

NameTypeDescription
onDashboardInitializingString

A String object containing the JavaScript function (or its name) executed when the event is raised.

|

Returns

TypeDescription
DashboardBuilder

A reference to this instance after the operation has completed.

|

Remarks

The code sample below shows how to handle the dashboardInitializing event:

cshtml
@(Html.DevExpress().Dashboard("dashboardControl1")
    .Width("100%")
    .Height("100%")
    .OnDashboardInitializing("customizeDashboard")
)

See Also

DashboardBuilder Class

DashboardBuilder Members

DevExpress.DashboardAspNetCore Namespace