New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientTaskResizing
The OnClientTaskResizing occurs when the Task is just about to be resized.
The event handler receives two parameters:
-
The instance of the Gantt control firing the event.
-
An eventArgs parameter containing the following methods:
-
get_task returns the current moved task.
-
set_cancel lets you cancel the event and prevent the task moving.
-
get_cancel returns true if the event has been canceled.
-
get_start returns the start time of the current task.
-
get_end returns the end time of the current task.
ASP.NET
<telerik:RadGantt RenderMode="Lightweight" runat="server" id="RadGantt1" OnClientTaskResizing="OnClientTaskResizing">
</telerik:RadGantt>
JavaScript
function OnClientTaskResizing(sender, eventArgs) {
args.set_cancel(true);
}