The requested page is not available for the requested platform. You are viewing the content for Default platform.

DashboardViewer.LoadDashboard(String) Method

Loads a dashboard from an XML file.

Namespace: DevExpress.DashboardWin

Assembly: DevExpress.Dashboard.v19.1.Win.dll

Declaration

public void LoadDashboard(
    string filePath
)
Public Sub LoadDashboard(
    filePath As String
)

Parameters

Name Type Description
filePath String

A String that specifies the path to an XML file that contains the dashboard.

Remarks

You can open a dashboard in one of the following ways.

All these actions raise the DashboardViewer.DashboardChanged event.

To access the dashboard after it has been opened, use the DashboardViewer.Dashboard property.

To save a dashboard to a file or a stream, use the Dashboard.SaveToXml method.

Note

If the DashboardDesigner / DashboardViewer control is placed in the MDI child form, load dashboards in the Shown event handler instead of Load.

The following code snippet shows how to load a dashboard located in the project's Data folder:

dashboardViewer1.LoadDashboard("../../Data/dashboard1.xml");
See Also