New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

OnClientTaskMoving

The OnClientMoving occurs when the Task is just about to be moved.

The event handler receives two parameters:

  1. The instance of the Gantt control firing the event.

  2. An eventArgs parameter containing the following methods:

  • get_task return the current moved task.

  • get_start return the start time of the current task.

  • set_cancel lets you cancel the event and stop the task moving.

<telerik:RadGantt RenderMode="Lightweight" runat="server" id="RadGantt1" OnClientTaskMoving="OnClientTaskMoving">
</telerik:RadGantt>
function OnClientTaskMoving(sender, eventArgs) {
    args.set_cancel(true);
}

See Also

In this article