ASPxClientDashboard.PerformDataCallback(String, ASPxClientDataCallback) Method

Sends a callback to the server and generates the server-side ASPxDashboard.CustomDataCallback event, passing it the specified argument.

Namespace: DevExpress.DashboardWeb.Scripts

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

Declaration

public void PerformDataCallback(
    string parameter,
    ASPxClientDataCallback onCallback
)
Public Sub PerformDataCallback(
    parameter As String,
    onCallback As ASPxClientDataCallback
)

Parameters

Type Name Description
String parameter

A string value that represents any information that needs to be sent to the server-side ASPxDashboard.CustomDataCallback event.

ASPxClientDataCallback onCallback

A ASPxClientDataCallback object that represents the JavaScript function which receives the callback data as a parameter.

Use the PerformDataCallback method if you need to asynchronously go to the server and perform some server-side processing using AJAX-based callback technology. You can pass the required information to be collected on the client side as a string of arguments (for instance, in the "Name = Value;" form) using the PerformDataCallback method's parameter parameter.

The PerformDataCallback method posts back to the server using the callback technology and generates a server-side ASPxDashboard.CustomDataCallback event. So, the necessary server-side actions can be performed in the event's handler based upon the values of the arguments obtained by parsing the passed information string.

Note

The ASPxClientDashboard.BeginCallback and ASPxClientDashboard.EndCallback client events can also be used to perform necessary client actions before and after callback processing.

See Also