DashboardDesigner.LoadDashboard(String) Method
Loads a dashboard from an XML file.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v24.2.Win.dll
Declaration
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.
- Create and assign an instance of the Dashboard class to the DashboardDesigner.Dashboard property.
- Use the LoadDashboard method to open a dashboard from a file or stream.
To save a dashboard to a file or a stream, use the Dashboard.SaveToXml method. You can use the Dashboard.LoadFromXml method to load a dashboard definition from a file or a stream to the existing dashboard.
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:
dashboardDesigner1.LoadDashboard("../../Data/dashboard1.xml");
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the LoadDashboard(String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.