New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

TaskDelete

The RadGantt TaskDelete is fired when a task's collection is about to be deleted from the database through the provider.

TaskDelete event handler receives two parameters:

  • sender is the RadGantt control instance.

  • e is an object of type GanttEventArgs. It gives you access to the deleted RadGantt tasks collection.

Example

ASP.NET
<telerik:RadGantt RenderMode="Lightweight" ID="RadGantt1" runat="server" OnTaskDelete="RadGantt1_TaskDelete"></telerik:RadGantt>
C#
protected void RadGantt1_TaskDelete(object sender, Telerik.Web.UI.Gantt.TaskEventArgs e)
{
    foreach (var item in e.Tasks)
    {
        //...
    }
}

See Also

In this article
ExampleSee Also
Not finding the help you need?
Contact Support