Class BeforeOpenEventArgs
Event argument for the BeforeOpen event, triggered just prior to rendering a popup/dropdown in Syncfusion dropdown controls.
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 |
|