Skip to content

Commit 3d7a34f

Browse files
Merge pull request #7032 from syncfusion-content/988836-managing-tasks
988836: Content check in blazor platform
2 parents 250d152 + 280dfef commit 3d7a34f

11 files changed

+320
-239
lines changed

blazor-toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3091,7 +3091,7 @@
30913091
<li><a href="/blazor/gantt-chart/editing-tasks">Editing Tasks</a></li>
30923092
<li><a href="/blazor/gantt-chart/deleting-tasks">Deleting Tasks</a></li>
30933093
<li><a href="/blazor/gantt-chart/taskbar-editing">Taskbar Editing</a></li>
3094-
<li><a href="/blazor/gantt-chart/split-task">Split Task</a></li>
3094+
<li><a href="/blazor/gantt-chart/splitting-and-merging-tasks">Splitting and Merging Tasks</a></li>
30953095
<li><a href="/blazor/gantt-chart/indent-outdent">Indent and Outdent</a></li>
30963096
<li><a href="/blazor/gantt-chart/entity-framework">Entity Framework</a></li>
30973097
</ul>

blazor/gantt-chart/adding-new-tasks.md

Lines changed: 35 additions & 36 deletions
Large diffs are not rendered by default.

blazor/gantt-chart/deleting-tasks.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
---
22
layout: post
33
title: Deleting tasks in Blazor Gantt Chart Component | Syncfusion
4-
description: Checkout and learn here all about Deleting tasks in Syncfusion Blazor Gantt Chart component and more.
4+
description: Learn how to delete tasks dynamically in the Syncfusion Blazor Gantt Chart component using toolbar or programmatic methods for efficient project management.
55
platform: Blazor
6-
control: Gantt Chart
6+
control: Deleting tasks
77
documentation: ug
88
---
99

1010
# Deleting Tasks in Blazor Gantt Chart Component
1111

12-
## Deleting Tasks
12+
Deleting tasks in the Blazor Gantt Chart component streamlines project management by removing tasks, such as outdated milestones or subtasks, using the toolbar or programmatic methods. Enabled by setting the [GanttEditSettings.AllowDeleting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEditSettings.html#Syncfusion_Blazor_Gantt_GanttEditSettings_AllowDeleting) property to **true** and tasks can be deleted after selecting a row, ensuring seamless updates to dependencies and critical path calculations. A confirmation dialog, activated via [GanttEditSettings.ShowDeleteConfirmDialog](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEditSettings.html#Syncfusion_Blazor_Gantt_GanttEditSettings_ShowDeleteConfirmDialog), prompts to verify deletions, preventing accidental removals. The [DeleteRecordAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.SfGantt-1.html#Syncfusion_Blazor_Gantt_SfGantt_1_DeleteRecordAsync_System_Nullable_System_Int32__) method allows programmatic deletion, requiring a selected record with valid `GanttTaskFields` mappings (e.g., id, name). Ensure tasks are selected and `GanttTaskFields` are properly configured to avoid issues during deletion.
1313

14-
A task delete option in the Gantt Chart component can be enabled by enabling the [GanttEditSettings.AllowDeleting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEditSettings.html#Syncfusion_Blazor_Gantt_GanttEditSettings_AllowDeleting) property. Tasks can be deleted by clicking the delete toolbar item or using the `[DeleteRecordAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.SfGantt-1.html#Syncfusion_Blazor_Gantt_SfGantt_1_DeleteRecordAsync_System_Nullable_System_Int32__) method. You can call this method dynamically on any custom actions like button click. The following code example shows how to enable the delete option in the Gantt Chart component.
14+
## Delete tasks via toolbar
15+
16+
Enable task deletion through the toolbar by setting [GanttEditSettings.AllowDeleting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEditSettings.html#Syncfusion_Blazor_Gantt_GanttEditSettings_AllowDeleting) to **true**. Select a row and click the toolbar’s **Delete** icon to remove the task, with an optional confirmation dialog if [GanttEditSettings.ShowDeleteConfirmDialog](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEditSettings.html#Syncfusion_Blazor_Gantt_GanttEditSettings_ShowDeleteConfirmDialog) is enabled. This method is ideal for quickly removing tasks like completed activities.
1517

1618
{% tabs %}
1719
{% highlight razor tabtitle="Index.razor" %}
@@ -73,11 +75,9 @@ A task delete option in the Gantt Chart component can be enabled by enabling the
7375

7476
N> You should set the `AllowDeleting` value to `true` to delete the record dynamically.
7577

76-
## Delete confirmation message
77-
78-
Delete confirmation message is used to get confirmation from users before deleting a task. This confirmation message can be enabled by setting the [GanttEditSettings.ShowDeleteConfirmDialog](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEditSettings.html#Syncfusion_Blazor_Gantt_GanttEditSettings_ShowDeleteConfirmDialog) property to true.
78+
## Delete tasks with confirmation dialog
7979

80-
The following code snippet explains how to enable the delete confirmation message in Gantt Chart.
80+
Enable a confirmation dialog for task deletion by setting [GanttEditSettings.ShowDeleteConfirmDialog](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEditSettings.html#Syncfusion_Blazor_Gantt_GanttEditSettings_ShowDeleteConfirmDialog) to **true**, alongside [GanttEditSettings.AllowDeleting](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEditSettings.html#Syncfusion_Blazor_Gantt_GanttEditSettings_AllowDeleting) . After selecting a row, deleting via the toolbar or [DeleteRecordAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.SfGantt-1.html#Syncfusion_Blazor_Gantt_SfGantt_1_DeleteRecordAsync_System_Nullable_System_Int32__) method prompts a dialog to confirm the action, ensuring intentional removals. This is useful for critical tasks where accidental deletion must be avoided.
8181

8282
{% tabs %}
8383
{% highlight razor tabtitle="Index.razor" %}

0 commit comments

Comments
 (0)