menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GanttEditSettings - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GanttEditSettings

    Class that defines the edit settings property in Gantt.

    Inheritance
    System.Object
    GanttEditSettings
    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

    true if new records can be added to the Gantt chart; otherwise, false.

    Remarks

    Set this property to true to enable the addition of new records in the Gantt chart. By default, this property is set to false, preventing users from adding new records.

    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

    true if the user is allowed to delete items; otherwise, false.

    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

    true if editing is allowed; otherwise, false.

    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

    true If need to allow scheduling dates by click and drag action; otherwise, false. The default value is false.

    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

    true to enable taskbar editing; otherwise, false.

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved