Skip to main content
All docs
V24.2

ASPxClientGanttTaskInsertedEventArgs Class

Contains data for the TaskInserted event.

Declaration

declare class ASPxClientGanttTaskInsertedEventArgs extends ASPxClientEventArgs

Remarks

Run Demo: ASPxGantt - Client-Side Events Run Demo: MVCxGantt - Client-Side Events

Web Forms:

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

MVC:

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.ClientSideEvents.TaskInserted = "function (s, e) { 
        e.values["Subject"] = "Custom Task Name";
    }";
    ...
}).Bind(
    GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
    GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
).GetHtml()

Concepts

Inheritance

ASPxClientEventArgs
ASPxClientGanttTaskInsertedEventArgs
See Also