DashboardJsonConverter Class
Provides methods that allow you to convert a dashboard XML definition to JSON and vice versa.
Namespace: DevExpress.DashboardWeb
Assembly: DevExpress.Dashboard.v24.1.Web.WebForms.dll
NuGet Package: DevExpress.Web.Dashboard
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);
}
Inheritance
Object
DashboardJsonConverter
See Also