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.
<dx:ASPxGantt ID="Gantt" >
<ClientSideEvents TaskInserting="onGanttTaskInserting" ... />
</dx:ASPxGantt>
function onGanttTaskInserting(s, e) {
e.values["Subject"] == "Custom Task Name";
}
Concepts
See Also