ASPxClientHtmlEditor.PerformDataCallback(parameter, onCallback) Method
Sends a callback to the server and generates the server-side ASPxHtmlEditor.CustomDataCallback event passing it the specified argument.
Declaration
PerformDataCallback(
parameter: string,
onCallback: ASPxClientDataCallback
): void
Parameters
Name | Type | Description |
---|---|---|
parameter | string | A string value that represents any information that needs to be sent to the server-side ASPxHtmlEditor.CustomDataCallback event. |
onCallback | ASPxClientDataCallback | A ASPxClientDataCallback object that represents the JavaScript function which receives the callback data as a parameter. |
Remarks
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) via the PerformDataCallback method’s parameter parameter.
The PerformDataCallback method posts back to the server, using the callback technology, and generates a server-side ASPxHtmlEditor.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 ASPxClientHtmlEditor.BeginCallback and ASPxClientHtmlEditor.EndCallback client events can also be used to perform necessary client actions before and after callback processing.