menu

Blazor

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

    Show / Hide Table of Contents

    Class CloseAction

    Defines the method by which a dialog can be closed in the Gantt Chart.

    Inheritance
    System.Object
    CloseAction
    Namespace: Syncfusion.Blazor.Gantt
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class CloseAction : Enum
    Remarks

    This enum is used in the CloseBy property to indicate the specific interaction that resulted in the dialog being closed.

    Fields

    Cancel

    Indicates that the dialog was closed using the Cancel button.

    Declaration
    public const CloseAction Cancel
    Field Value
    Type
    CloseAction
    Remarks

    Pressing the Cancel button generally means the user has decided not to proceed with any actions initiated in the dialog.

    Enter

    Indicates that the dialog was closed by pressing the Enter key.

    Declaration
    public const CloseAction Enter
    Field Value
    Type
    CloseAction
    Remarks

    Pressing the Enter key often triggers the default action in dialogs, which may include saving changes.

    Escape

    Indicates that the dialog was closed by pressing the Escape key.

    Declaration
    public const CloseAction Escape
    Field Value
    Type
    CloseAction
    Remarks

    This keyboard shortcut is often used for quickly dismissing dialogs, maintaining user workflow efficiency.

    Icon

    Indicates that the dialog was closed using the close (X) icon.

    Declaration
    public const CloseAction Icon
    Field Value
    Type
    CloseAction
    Remarks

    Selecting this icon typically signifies that the user intends to dismiss the dialog without saving changes.

    Save

    Indicates that the dialog was closed using the Save button.

    Declaration
    public const CloseAction Save
    Field Value
    Type
    CloseAction
    Remarks

    The Save button typically signifies that the user wants to save the changes made within the dialog.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved