aspnet-js-aspxclientendcallbackeventargs.md
Provides data for client events related to the completion of a callback processing round trip.
declare class ASPxClientEndCallbackEventArgs extends ASPxClientEventArgs
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.
Web Forms:
<dx:ASPxGridView runat="server" ID="ASPxGridView1" ... >
<ClientSideEvents EndCallback="OnEndCallback" />
...
</dx:ASPxGridView>
function OnEndCallback(s, e) {
if (e.command == "ADDNEWROW") {
s.Refresh();
}
}
MVC:
@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()
ASPxClientEventArgs ASPxClientEndCallbackEventArgs ASPxClientGlobalEndCallbackEventArgs
See Also