Skip to main content
All docs
V25.1
  • ASPxClientGanttTaskMovingEventArgs.newValues Property

    Specifies the task values after moving.

    Declaration

    newValues: any

    Property Value

    Type Description
    any

    The new values.

    Remarks

    Web Forms:

    <dx:ASPxGantt ID="Gantt" >
        <ClientSideEvents TaskMoving="function(s, e) {
            //...
            var limit = new Date("2020-12-17T03:24:00");
            if(e.newValues["StartDate"] > limit)
                e.newValues["StartDate"] = limit;
            console.log("Start date was changed from " + e.values["StartDate"] + " to " + e.newValues["StartDate"]);
        }" />
    </dx:ASPxGantt>
    

    MVC:

    @Html.DevExpress().Gantt(settings => {
        settings.Name = "gantt";
        settings.ClientSideEvents.TaskMoving = "function (s, e) { 
            //...
            var limit = new Date("2020-12-17T03:24:00");
            if(e.newValues["StartDate"] > limit)
                e.newValues["StartDate"] = limit;
            console.log("Start date was changed from " + e.values["StartDate"] + " to " + e.newValues["StartDate"]);      
        }";
        ...
    }).Bind(
        GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
        GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
    ).GetHtml()
    
    See Also