menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GanttDialogCloseEventArgs<TValue> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GanttDialogCloseEventArgs<TValue>

    Represents event arguments for the GanttDialogClosing event of a Gantt chart dialog.

    Inheritance
    System.Object
    GanttDialogCloseEventArgs<TValue>
    Namespace: Syncfusion.Blazor.Gantt
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class GanttDialogCloseEventArgs<TValue> : Object
    Type Parameters
    Name
    TValue

    Constructors

    GanttDialogCloseEventArgs()

    Declaration
    public GanttDialogCloseEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether to cancel the dialog closure of the record.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    If set to true, the dialog close action will be cancelled, and the dialog will remain open. Default is false, which allows the dialog to close normally.

    CloseBy

    Gets the interaction method used to close the dialog.

    Declaration
    public CloseAction CloseBy { get; }
    Property Value
    Type Description
    CloseAction

    A value from the CloseAction enum indicating the interaction used to close the dialog.

    • Icon - Dialog was closed using the close (X) icon
    • Cancel - Dialog was closed using the Cancel button
    • Escape - Dialog was closed by pressing the Escape key
    • Save - Dialog was closed using the Save button
    • Enter - Dialog was closed by pressing the Enter key
    This property helps differentiate how the dialog was closed for logging or analytics purposes.

    Data

    Gets the data associated with the row being edited or added.

    Declaration
    public TValue Data { get; }
    Property Value
    Type Description
    TValue

    An object of the type TValue that represents the row data. This reflects any changes made in the dialog up to the point of closing.

    DialogType

    Gets the type of dialog operation being performed.

    Declaration
    public DialogType DialogType { get; }
    Property Value
    Type Description
    DialogType

    A value from the DialogType enum indicating whether the current operation is adding a new record or editing an existing one.

    • AddIndicates that the dialog is being used to add a new record.
    • EditIndicates that the dialog is being used to edit an existing record.
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved