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

OnClientTogglePlannedTasks

The OnClientTogglePlannedTasks occurs upon Toolbar PlannedTasks Switch click. As a result, the planned tasks will be either hidden or shown in the Gantt Timeline view. Event can be canceled. The equivalent of Kendo UI Gantt togglePlannedTasks event.

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_showPlannedTasks returns a boolean indicating whether the planned tasks are about to be shown (true) or hidden (false)..

  • set_cancel lets you cancel the event and prevent the planned task toggle.

  • get_cancel returns true if the event has been canceled.

  • get_sender returns the underlying Kendo UI Gantt widget that fired the event.

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

See Also

In this article