The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientGaugeControl.PerformCallback(parameter) Method

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

Declaration

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

Parameters

Name Type Description
parameter string

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

Optional Parameters

Name Type Default Description
onSuccess (arg: string) => void null

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 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 the callback technology and generates a server-side ASPxGaugeControl.CustomCallback event. The method's args argument is passed to the ASPxGaugeControl.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 which can be obtained by parsing the passed information string.

If you need to perform actions on the client-side before and after callback processing, handle the ASPxClientGaugeControl.BeginCallback and ASPxClientGaugeControl.EndCallback events.

After a custom callback has been performed, the ASPxGaugeControl is automatically re-rendered.

Note

Changing the settings of other controls contained on the page has no effect, because a custom callback only contains information about the ASPxGaugeControl.

See Also