Skip to main content
All docs
V25.1
  • DesignerToolbarOptionBuilder.OnPreparing(String) Method

    A handler for the event that occurs before the Designer Toolbar is created.

    Namespace: DevExpress.DashboardAspNetCore

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

    NuGet Package: DevExpress.AspNetCore.Dashboard

    Declaration

    public DesignerToolbarOptionBuilder OnPreparing(
        string onPreparing
    )

    Parameters

    Name Type Description
    onPreparing String

    A function that is executed before the Designer Toolbar is created.

    Returns

    Type Description
    DesignerToolbarOptionBuilder

    A reference to this instance after the operation has completed.

    Remarks

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

    @(Html.DevExpress().Dashboard("dashboardControl1")
        .Width("100%")
        .Height("100%")
        .OnBeforeRender("onBeforeRender")
        .Extensions(ext => {
            ext.DesignerToolbar(options => {
                options.OnPreparing("customizeDashboard");
            });
        })
    )
    
    See Also