aspnet-js-aspxclientcallback-2dab2a91.md
Fires on the client side when a callback initiated by the client ASPxClientCallback.PerformCallback method and processed within the server ASPxCallback.Callback event’s handler returns back to the client.
CallbackComplete: ASPxClientEvent<ASPxClientCallbackCompleteEventHandler<ASPxClientCallback>>
The CallbackComplete event's data class is ASPxClientCallbackCompleteEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| parameter | Gets a string that contains specific information (if any) passed from the client side for server-side processing. |
| result | Gets a string that contains specific information (if any) that has been passed from the server to the client side for further processing. |
The CallbackComplete event allows you to process a callback, which has been sent via the client ASPxClientCallback.PerformCallback method and then processed with the server ASPxCallback.Callback event.
Use the ASPxClientCallbackCompleteEventArgs.parameter property to obtain specific client information that has been sent to the server by the ASPxClientCallback.PerformCallback method. The ASPxClientCallbackCompleteEventArgs.result property provides the result of the server-side callback processing.
Web Forms:
Note
For a full example, refer to the How to implement a single cell editing feature in the ASPxGridView online example.
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ClientInstanceName="grid" Width="100%"
KeyFieldName="ID">
<ClientSideEvents BatchEditEndEditing="onBatchEditEndEditing" />
<Columns>
...
</Columns>
</dx:ASPxGridView>
<dx:ASPxCallback ID="ASPxCallback" runat="server" ClientInstanceName="callback" OnCallback="ASPxCallback_Callback">
<ClientSideEvents CallbackComplete="onEndUpdateCallback" />
</dx:ASPxCallback>
function UpdateEdit(object, cellInfo) {
callback.cpCellInfo = cellInfo;
callback.PerformCallback(JSON.stringify(object));
}
function onEndUpdateCallback(s, e) {
if (e.result != "OK") {
alert(e.result);
grid.batchEditApi.StartEdit(s.cpCellInfo.rowVisibleIndex, s.cpCellInfo.column.index);
}
}
See Also