alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class BeforeOpenEventArgs

    Provides arguments for the OnOpen event, which is triggered before the dialog opens.

    Inheritance
    object
    BeforeOpenEventArgs
    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 BeforeOpenEventArgs
    Remarks

    This event allows for customization or cancellation of the dialog before it is displayed.

    Constructors

    BeforeOpenEventArgs()

    Declaration
    public BeforeOpenEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the opening of the dialog should be canceled.

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

    A bool. The default is false.

    Remarks

    Setting this to true prevents the dialog from being shown.

    Container

    Gets the container element where the dialog will be rendered.

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

    A DOM object representing the container.

    Remarks

    The dialog is appended to this container in the DOM.

    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 represents the main wrapper element of the dialog component.

    MaxHeight

    Gets or sets a value that overrides the dialog's maximum height.

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

    A string representing the maximum height (e.g., "500px", "80%").

    Remarks

    This allows for dynamically adjusting the maximum height before the dialog is rendered.

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