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.
Web Forms:
<dx:ASPxGantt ID="Gantt" >
<ClientSideEvents TaskInserting="function(s, e) {
e.values["Subject"] = "Custom Task Name";
}" />
</dx:ASPxGantt>
MVC:
@Html.DevExpress().Gantt(settings => {
settings.Name = "gantt";
settings.ClientSideEvents.TaskInserting = "function (s, e) {
e.values["Subject"] = "Custom Task Name";
}";
...
}).Bind(
GanttDataProvider.Tasks, GanttDataProvider.Dependencies,
GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()
Concepts
See Also