Skip to main content
All docs
V25.1
  • ASPxClientGantt.EndCallback Event

    Occurs on the client side after a callback’s server-side processing has been completed.

    #Declaration

    TypeScript
    EndCallback: ASPxClientEvent<ASPxClientEndCallbackEventHandler<ASPxClientGantt>>

    #Event Data

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

    Property Description
    command Gets a command name that identifies which client action forced a callback to occur.

    #Remarks

    The BeginCallback and EndCallback events can be used to perform specific client-side actions (for example, to display and hide an explanatory text or picture) while a callback is being processed on the server side.

    Web Forms:

    <dx:ASPxGantt ID="Gantt" ClientInstanceName="clientGantt" >
        <ClientSideEvents
            BeginCallback="function(s, e) { command = e.command; }" 
            EndCallback="function(s, e) { if (command == "UNDO") {...} }"
        />
    </dx:ASPxGantt>
    

    MVC:

    @Html.DevExpress().Gantt(settings => {
        settings.Name = "gantt";
        settings.ClientSideEvents.BeginCallback = "function (s, e) { // your code }";
        settings.ClientSideEvents.EndCallback = "function (s, e) { // your code }";
        ...
    }).Bind(
        GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
        GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
    ).GetHtml()
    

    #Concept

    See Also