Back to Devexpress

ASPxClientTreeList.PerformCallback(args) Method

aspnet-js-aspxclienttreelist-dot-performcallback-x28-args-x29.md

latest2.0 KB
Original Source

ASPxClientTreeList.PerformCallback(args) Method

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

Declaration

ts
PerformCallback(
    args: string,
    onSuccess?: (arg: string) => void
): void

Parameters

NameTypeDescription
argsstring

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

| | onSuccess | (arg: string) => void |

A client action to perform if the server round-trip completed successfully.

|

Remarks

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, via the arg 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 ASPxTreeList.CustomCallback event. The method’s arg argument is passed to the ASPxTreeList.CustomCallback event’s handler as the TreeListCustomCallbackEventArgs.Argument property.

See Also

Callbacks

CustomCallback

Tree List

ASPxClientTreeList Class

ASPxClientTreeList Members