ASPxClientFileManager.PerformCallback(args) Method
Sends a callback to the server and generates the server-side ASPxFileManager.CustomCallback event, passing it the specified argument.
Declaration
PerformCallback(
args: string,
onSuccess?: (arg: string) => void
): void
Parameters
Name | Type | Description |
---|---|---|
args | string | A string value that specifies any information that needs to be sent to the server-side ASPxFileManager.CustomCallback event. |
onSuccess | (arg: string) => void | A client action to perform if the server round-trip completed successfully. |
Remarks
Use the PerformCallback method to update the folder container and file container content.
You can also use the PerformCallback method if you need to asynchronously go to the server and perform 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) with the PerformCallback method’s args 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 callback technology, and generates a server-side ASPxFileManager.CustomCallback event. The method’s args argument is passed to the ASPxFileManager.CustomCallback 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, obtained by parsing the passed information string.
The ASPxClientFileManager.BeginCallback and ASPxClientFileManager.EndCallback client events can also be used to perform necessary client actions before and after callback processing.