DashboardJsonConverter Class

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

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v18.2.Web.WebForms.dll

Declaration

public static class DashboardJsonConverter
Public Module DashboardJsonConverter

Examples

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);
        }

Inheritance

Object
DashboardJsonConverter
See Also