Skip to main content

ASPxClientGridView.BeginCallback Event

Occurs when a callback for server-side processing is initiated.

Declaration

BeginCallback: ASPxClientEvent<ASPxClientBeginCallbackEventHandler<ASPxClientGridView>>

Event Data

The BeginCallback event's data class is ASPxClientBeginCallbackEventArgs. The following properties provide information specific to this event:

Property Description
command Gets a command name that identifies which client action initiated a callback.

Remarks

The BeginCallback and ASPxClientGridView.EndCallback events can be used to perform specific client-side actions when a callback is being processed on a server.

Note

The BeginCallback event has an MVC-related equivalent. Refer to the MVCxClientGridView.BeginCallback event for more information.

Example

The following example illustrates how to use the BeginCallback event.

<dx:ASPxGridView ID="ASPxGridView1" runat="server">
    <ClientSideEvents EndCallback="OnEndCallback" BeginCallback="OnBeginCallback"/> 
    <%--...--%>
</dx:ASPxGridView>
var command = "";
function OnBeginCallback(s, e) {
    command = e.command;
}
function OnEndCallback(s, e) {
    if (command == "ADDNEWROW") {
        s.Refresh();
    }
}
See Also