Skip to main content
All docs
V23.2

ASPxGantt.CustomCallback Event

Fires when the client ASPxClientGantt.PerformCallback method initiates a round trip to the server.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public event GanttCustomCallbackEventHandler CustomCallback

Event Data

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

Property Description
Argument Returns string information passed from the client-side (if any).

Remarks

The CustomCallback event allows you to perform server-side actions in response to a call to the client PerformCallback method.

Use the event parameter’s Argument property to get information passed from the client-side with the PerformCallback method’s args parameter.

Note that you can additionally handle the client BeginCallback and EndCallback events to perform actions before and after callback processing.

The following example shows how to pass a clicked task’s key value to the CustomCallback event handler:

<script type="text/javascript">
    function onClickTask(s, e) {
        clientGantt.PerformCallback(e.key);
    }
</script>

<dx:ASPxGantt ID="Gantt" runat="server" ClientInstanceName="clientGantt" OnCustomCallback="Gantt_CustomCallback" ...>
    <!--...-->
</dx:ASPxGantt>
protected void Gantt_CustomCallback(object sender, DevExpress.Web.ASPxGantt.GanttCustomCallbackEventArgs e){
    string key = e.Argument;
    //...
}
See Also