Back to Devexpress

ASPxClientEndCallbackEventArgs Class

aspnet-js-aspxclientendcallbackeventargs.md

latest1.5 KB
Original Source

ASPxClientEndCallbackEventArgs Class

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

Declaration

ts
declare class ASPxClientEndCallbackEventArgs extends ASPxClientEventArgs

Remarks

Objects of the ASPxClientEndCallbackEventArgs type are used as arguments for the EndCallback event generated on the client side.

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

Example

Web Forms:

aspx
<dx:ASPxGridView runat="server" ID="ASPxGridView1" ... >
<ClientSideEvents EndCallback="OnEndCallback" /> 
...
</dx:ASPxGridView>
javascript
function OnEndCallback(s, e) {
    if (e.command == "ADDNEWROW") {
        s.Refresh();
    }
}

MVC:

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

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

Inheritance

ASPxClientEventArgs ASPxClientEndCallbackEventArgs ASPxClientGlobalEndCallbackEventArgs

See Also

ASPxClientEndCallbackEventArgs Members