This example shows how to export a dashboard displayed in ASPxDashboard on the server. When you click Export to PDF, the ASPxDashboardExporter exports the displayed dashboard with the specified dashboard state to your desktop.
The following API is used to implement this functionality:
- The ASPxDashboard.CustomJSProperties server-side event is used to pass information about available dashboards to the client side.
- The DashboardControl.loadDashboard method opens a selected dashboard.
- The ASPxClientDashboard.PerformDataCallback method is used to pass the dashboard identifier and state to the server. On the server, the ASPxDashboard.CustomDataCallback event is used to obtain and parse these values.
- ASPxDashboardExporter.ExportToPdf is used to export the selected dashboard with the state passed from the client.