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

ASPxClientBeginCallbackEventArgs Class

Provides data for client events related to the beginning of a callback processing round trip.

Declaration

declare class ASPxClientBeginCallbackEventArgs extends ASPxClientEventArgs

Remarks

Objects of the ASPxClientBeginCallbackEventArgs type are used as arguments for the BeginCallback events generated on the client side.

ASPxClientBeginCallbackEventArgs objects with proper settings are automatically created and passed to the corresponding event handlers.

Example

The following example illustrates how to use the command property.

WebForms:


<dx:ASPxGridView runat="server" ID="ASPxGridView1" ... >
<ClientSideEvents EndCallback="OnEndCallback" BeginCallback="OnBeginCallback"/> 
...
</dx:ASPxGridView>

MVC:


@Html.DevExpress().GridView(settings => {
    settings.Name = "GridView1";
    settings.KeyFieldName = "ID";

    settings.ClientSideEvents.BeginCallback = "function(s, e) { command = e.command; }";
    settings.ClientSideEvents.EndCallback = "function(s, e) { if (command == 'ADDNEWROW') {
        s.Refresh(); } }";
}).Bind(Model).GetHtml() 
See Also