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

    Allows you to save the current dashboard with a specified unique name and JSON model.

    Namespace: DevExpress.Dashboard

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

    Declaration

    public void performSaveDashboard(
        string dashboardId,
        string dashboardJson
    )

    Parameters

    Name Type Description
    dashboardId String

    A string value that is a unique 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 save the current dashboard with the specified unique name and JSON model.

    // ...
    function saveDashboard() {
        var newExtension = dashboardControl.findExtension("save-dashboard");
        var newName = "customDashboard";
        newExtension.performSaveDashboard(newName, dashboardControl.dashboard().getJSON());
    }
    // ...
    
    See Also