Skip to main content
All docs
V25.1
  • ASPxClientGanttTaskMovingEventArgs Class

    Contains data for the TaskMoving event.

    #Declaration

    TypeScript
    declare class ASPxClientGanttTaskMovingEventArgs extends ASPxClientCancelEventArgs

    #Remarks

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

    Web Forms:

    <dx:ASPxGantt ID="Gantt" >
        <ClientSideEvents TaskMoving="function(s, e) {
            if (e.key == 5) {
                //...
                e.cancel = true;
            }
        }" />
    </dx:ASPxGantt>
    

    MVC:

    @Html.DevExpress().Gantt(settings => {
        settings.Name = "gantt";
        settings.ClientSideEvents.TaskMoving = "function (s, e) { 
            if (e.key == 5) {
                //...
                e.cancel = true;
            }        
        }";
        ...
    }).Bind(
        GanttDataProvider.Tasks, GanttDataProvider.Dependencies, 
        GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments
    ).GetHtml()
    

    #Concepts

    #Inheritance

    ASPxClientEventArgs
    ASPxClientCancelEventArgs
    ASPxClientGanttTaskMovingEventArgs
    See Also