Skip to main content
All docs
V24.2

GanttCustomCallbackEventArgs.Argument Property

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

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

public string Argument { get; }

Property Value

Type Description
String

A string passed from the client-side.

Remarks

Call the client PerformCallback method with specified information as a parameter to pass it to the server CustomCallback event handler. To obtain this information use the Argument property.

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