DashboardJsonConverter Class
In This Article
Provides methods that allow you to convert a dashboard XML definition to JSON and vice versa.
Namespace: DevExpress.DashboardWeb
Assembly: DevExpress.Dashboard.v24.2.Web.WebForms.dll
#Declaration
#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);
}
See Also