menu

Blazor

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

    Show / Hide Table of Contents

    Class BeforeOpenEventArgs

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

    Inheritance
    System.Object
    BeforeOpenEventArgs
    Namespace: Syncfusion.Blazor.Popups
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BeforeOpenEventArgs : Object
    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
    System.Boolean

    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
    System.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.

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