The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxDashboard.CustomDataCallback Event

Fires when a round trip to the server has been initiated by a call to the client ASPxClientDashboard.PerformDataCallback method.

Namespace: DevExpress.DashboardWeb

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


public event CustomDataCallbackEventHandler CustomDataCallback
Public Event CustomDataCallback As CustomDataCallbackEventHandler

Event Data

The CustomDataCallback event handler receives an argument of the CustomDataCallbackEventArgs type. The following properties provide information specific to this event.

Property Description
Parameter Gets a string that contains specific information (if any) passed from the client side.
(Inherited from CallbackEventArgsBase)
Result Gets or sets a string that contains specific information (if any) that needs to be passed to the client side for further processing.


The CustomDataCallback event allows any desired server-side processing to be performed, and any resulting required information to be passed to the client for further processing (if needed).

After the CustomDataCallback event has been processed on the server side, a result can be passed back to the client via the CallbackEventArgs.Result property. To receive the result on the client, handle the ASPxClientDashboard.CustomDataCallback event.


This example demonstrates how to export a dashboard displayed in ASPxDashboard on the server side using the ASPxDashboardExporter class. The following API is used to implement this capability.

function initializeControls() {
        text: "Export to PDF",
        onClick: function (param) {
            var selectedDashboardID = webDashboard.GetDashboardId();
            var dashboardState = webDashboard.GetDashboardState();
            var parameters = selectedDashboardID + "|" + dashboardState;
            webDashboard.PerformDataCallback(parameters, null);

        dataSource: getDashboardIDs(),
        value: getDashboardIDs()[0],
        onValueChanged: function (param) {

function getDashboardIDs() {
    return webDashboard.cpGetDashboardIDs;

function dashboardExportedSuccess(args) {
    DevExpress.ui.notify('A dashboard was exported to ' + args.result, 'success', 5000);
See Also