Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V17.2
  • CreateDashboardExtension.performCreateDashboard(String, String) Method

    Creates a new dashboard with a specified name and JSON model.

    Namespace: DevExpress.Dashboard

    Assembly: DevExpress.Dashboard.v17.2.Web.Scripts.dll

    Declaration

    public void performCreateDashboard(
        string dashboardName,
        string dashboardJson
    )

    Parameters

    Name Type Description
    dashboardName String

    A string value that is the name of the created dashboard.

    dashboardJson String

    A dashboard model encoded in the specified JSON string.

    Remarks

    The code snippet below shows you how to create a simple dashboard with the specified name and JSON model.

    // ...
    function createNewDashboard() {
        var newExtension = dashboardControl.findExtension("create-dashboard");
        var newName = "New Dashboard";
        newExtension.performCreateDashboard(newName, dashboardControl.dashboard().getJSON());
    }
    // ...
    
    See Also