Skip to main content

DashboardJsonConverter Class

Provides methods that allow you to convert a dashboard XML definition to JSON and vice versa.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v22.1.Web.WebForms.dll

Declaration

public static class DashboardJsonConverter

Example

The code snippet below shows how to initialize the server-side Dashboard object from the JSON model obtained from the client side.

using DevExpress.DashboardCommon;
using DevExpress.DashboardWeb;
// ...

        protected void ASPxDashboard1_CustomDataCallback(object sender, CustomDataCallbackEventArgs e) {
            System.Xml.Linq.XDocument dashboardDocument = DashboardJsonConverter.JsonToXml(e.Parameter);
            Dashboard dashboard = new Dashboard();
            dashboard.LoadFromXDocument(dashboardDocument);
        }

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DashboardJsonConverter class.

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.

Inheritance

Object
DashboardJsonConverter
See Also