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

    Event argument for the BeforeOpen event, triggered just prior to rendering a popup/dropdown in Syncfusion dropdown controls.

    Inheritance
    System.Object
    BeforeOpenEventArgs
    MentionOpeningEventArgs
    ComboBoxPopupOpenEventArgs
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BeforeOpenEventArgs : Object
    Remarks

    BeforeOpenEventArgs lets the handler cancel, alter, or style a popup before it shows. Setting Cancel prevents opening.

    Examples
    void OnBeforeOpen(BeforeOpenEventArgs args)
    {
        if (!UserHasPermission) args.Cancel = true;
    }

    Constructors

    BeforeOpenEventArgs()

    Declaration
    public BeforeOpenEventArgs()

    Properties

    Cancel

    Gets/sets whether to cancel the display of the popup/dropdown (true prevents opening).

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

    true cancels the popup open; false allows rendering.

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