Class GanttEditSettings
Class that defines the edit settings property in Gantt.
Inheritance
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttEditSettings : ComponentBase
Constructors
GanttEditSettings()
Declaration
public GanttEditSettings()
Properties
AllowAdding
Gets or sets a value indicating whether new records can be added to the Gantt chart.
Declaration
public bool AllowAdding { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Use this property to control whether new records can be added to the Gantt chart.
If this property is set to true
, an "Add" button will be displayed on the toolbar, which allows users to add new records.
If this property is set to false
, the "Add" button will be hidden and users will not be able to add new records.
By default, this property is set to false
.
AllowDeleting
Gets or sets a value indicating whether the user is allowed to delete items from the gantt chart component.
Declaration
public bool AllowDeleting { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Set this property to true
to allow users to delete items. The default value is false
.
AllowEditing
Gets or sets a value indicating whether the record is allowed to be edited.
Declaration
public bool AllowEditing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Set this property to true
to allow values to be updated in the existing record.
If set to false
, the record will be read-only.
AllowSchedulingOnDrag
Gets or sets whether to allow click and drag action on chart area of gantt to schedule dates and create a taskbar.
Declaration
public bool AllowSchedulingOnDrag { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
When set to true
, users can interact on gantt chart rows and schedule the task on their desired dates.
AllowTaskbarEditing
Gets or sets whether to enable or disable taskbar resizing, taskbar dragging, progress bar resizing and predecessor draw action in gantt chart.
Declaration
public bool AllowTaskbarEditing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
When set to true
, this property allows users to resize taskbars, drag them within the chart, resize the
progress bars and draw dependencies between tasks.
The default value of this property is false
, which means that taskbar editing is disabled by default.
Mode
Gets or sets edit mode in Gantt chart component.
Auto
- Defines cell edit mode in grid side and dialog mode in chart side.
Dialog
- Defines dialog edit mode on both sides.
Declaration
public EditMode Mode { get; set; }
Property Value
Type | Description |
---|---|
EditMode | The default value is EditMode.Auto. |
Remarks
The default value of this property is Auto
, which means that cell editing is allowed in the grid side
and dialog editing is allowed in the chart side.
NewRowPosition
Gets or sets the row position for new records of the gantt chart component.
Declaration
public RowPosition NewRowPosition { get; set; }
Property Value
Type | Description |
---|---|
RowPosition | The default value is RowPosition.Top. |
Remarks
The row position determines where new records are added when the user inserts them.
ShowDeleteConfirmDialog
Gets or sets a value indicating whether to show a confirmation dialog before deleting a record.
Declaration
public bool ShowDeleteConfirmDialog { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false. |
Remarks
If set to true, a confirmation dialog will be displayed before deleting a record. You can also cancel the delete command from the dialog.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |