aspnet-devexpress-dot-web-dot-aspxgantt-dot-aspxgantt-142b0402.md
Fires when the client ASPxClientGantt.PerformCallback method initiates a round trip to the server.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
public event GanttCustomCallbackEventHandler CustomCallback
Public Event CustomCallback As GanttCustomCallbackEventHandler
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). |
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;
//...
}
Protected Sub Gantt_CustomCallback(ByVal sender As Object, ByVal e As DevExpress.Web.ASPxGantt.GanttCustomCallbackEventArgs)
Dim key As String = e.Argument
'...
End Sub
See Also