Skip to main content
ID

GanttBuilder<T>.OnTaskInserted(String) Method

Mirrors the client-side onTaskInserted option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttBuilder<T> OnTaskInserted(
    string jsFunc
)

Parameters

Name Type Description
jsFunc String

An inline or external JavaScript function.

Returns

Type Description
GanttBuilder<T>

A reference to this instance after the method is called.

Remarks

Use this method to specify a JavaScript handler for the client-side taskInserted event. This handler can be an inline function or an external function’s reference. Function arguments are described in the client API reference.

@(Html.DevExtreme().Gantt()
    .OnTaskInserted("myGantt_onTaskInserted")
)

<script>
    function myGantt_onTaskInserted(e) {
        // Handler code
    }
</script>

Refer to Handle Events and Define Callbacks for more information.

See Also