Skip to main content
A newer version of this page is available. .
All docs
V20.2

ASPxClientGantt.TaskInserting Event

Occurs before a user inserts a task.

Declaration

TaskInserting: ASPxClientEvent<ASPxClientGanttTaskInsertingEventHandler<ASPxClientGantt>>

Event Data

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

Property Description
cancel Specifies whether to cancel the related action (for example, row edit, export). Inherited from ASPxClientCancelEventArgs.
values Specifies the task values.

Remarks

Use the TaskInserting event to process task data before a task is inserted.

Run Demo

<dx:ASPxGantt ID="Gantt" >
    <ClientSideEvents TaskInserting="onGanttTaskInserting" ... />
</dx:ASPxGantt>
function onGanttTaskInserting(s, e) {
    e.values["Subject"] == "Custom Task Name";
}

Concepts

See Also