alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class CloseEventArgs

    Provides arguments for the Closed event, which is triggered after the dialog has been closed.

    Inheritance
    object
    CloseEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Popups
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class CloseEventArgs
    Remarks

    This event can be used to execute code after the dialog is no longer visible.

    Constructors

    CloseEventArgs()

    Declaration
    public CloseEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether a subsequent action should be canceled. This property is not typically used in the Closed event.

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

    A bool. The default is false.

    Remarks

    While this property is available, it generally does not affect behavior as the dialog has already closed.

    ClosedBy

    Gets a value indicating how the dialog was closed.

    Declaration
    public string ClosedBy { get; set; }
    Property Value
    Type Description
    string

    A string that specifies the source of the close action (e.g., "CloseIcon", "Escape").

    Remarks

    This is useful for logging or analytics to track how users interact with the dialog.

    Container

    Gets the container element of the dialog.

    Declaration
    public DOM Container { get; set; }
    Property Value
    Type Description
    DOM

    A DOM object representing the container.

    Remarks

    This is the parent element that contained the dialog before it was closed.

    Element

    Gets the root DOM element of the dialog.

    Declaration
    public DOM Element { get; set; }
    Property Value
    Type Description
    DOM

    A DOM object for the dialog element.

    Remarks

    This property provides access to the dialog's element even after it has been removed from the visible DOM.

    Event

    Gets the event arguments that triggered the close action.

    Declaration
    public EventArgs Event { get; set; }
    Property Value
    Type Description
    EventArgs

    An EventArgs object.

    Remarks

    This provides context on the original user or programmatic action that led to the dialog closing.

    IsInteracted

    Gets a value indicating whether the dialog was closed as a result of user interaction.

    Declaration
    public bool IsInteracted { get; set; }
    Property Value
    Type Description
    bool

    true if the closing was initiated by the user; otherwise, false.

    Remarks

    This helps differentiate between a user closing the dialog versus a programmatic close.

    Name

    Gets the name of the event.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    The event name as a string. For this event, the value is typically "Closed".

    Remarks

    This property identifies the event that was fired.

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