Dashboard.LoadFromXml(String) Method
SECURITY NOTE
Do not load files obtained from untrusted sources. Such files may pose a security risk. Please review the following article for additional information:
Suppress Control Requests to Download Data from External URLs
Loads a dashboard from the specified XML file.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.2.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
filePath | String | A String that specifies the path to a file that contains a dashboard. |
Remarks
You need a dashboard (a Dashboard instance) to be created to use the Dashboard.LoadFromXml method.
To load a dashboard from a stream, use another overload of the LoadFromXml method that takes a stream parameter. You can use the DashboardDesigner.LoadDashboard / DashboardViewer.LoadDashboard methods as an alternative to the Dashboard.LoadFromXml method.
To save a dashboard to a file or stream, use the Dashboard.SaveToXml method.
The following code snippet shows how to load a dashboard from the project’s folder:
dashboardControl1.Dashboard = new Dashboard();
dashboardControl1.Dashboard.LoadFromXml("Data\\Dashboard.xml");
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the LoadFromXml(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.