Sends a callback to the server and generates the server-side ASPxCallbackPanel.Callback event, passing it the specified argument.
PerformCallback(parameter: string, onSuccess?: (arg: string) => void): void
A string value that represents any information that needs to be sent to the server-side ASPxCallbackPanel.Callback event.
|onSuccess||(arg: string) => void||null||
A client action to perform if the server round-trip completed successfully.
Use the PerformCallback 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 which can be collected on the client side as a string of arguments (for instance, in the "Name = Value;" form) via the PerformCallback method's parameter parameter. The onSuccess parameter allows you to specify a client function that should be executed after the server round-trip completed successfully.
The PerformCallback method posts back to the server using the callback technology, and generates a server-side ASPxCallbackPanel.Callback event. The method's parameter argument is passed to the ASPxCallbackPanel.Callback event's handler as the CallbackEventArgsBase.Parameter property. So, the necessary server-side actions can be performed in the event's handler based upon the values of the arguments which can be obtained by parsing the passed information string.
Note that the necessary actions can be additionally performed on the client side before and after callback processing by using the ASPxClientCallbackPanel.BeginCallback and ASPxClientCallbackPanel.EndCallback client event.
Full example - ASPxDataView - How to implement a custom alphabetic pager